/**
 * Emits metrics derived from live spans.
 */
import type { AnySpan, MetricsContext, UsageStats } from '@mastra/core/observability';
/** Emit duration metrics for a live span. */
export declare function emitDurationMetrics(span: AnySpan, metrics: MetricsContext): void;
/** Emit token usage metrics for a model-generation span. */
export declare function emitTokenMetrics(span: AnySpan, metrics: MetricsContext): void;
/**
 * Emit token usage metrics from an explicit usage payload, using the supplied
 * metrics context (which carries entity / parent / root labels) and the
 * supplied provider+model for cost lookup.
 *
 * Used when an internal MODEL_GENERATION's usage is rolled up to a visible
 * ancestor span: the metric labels come from the ancestor's context, the
 * cost calculation still uses the original model that incurred the tokens.
 */
export declare function emitTokenMetricsForUsage(usage: UsageStats, provider: string | undefined, model: string | undefined, metrics: MetricsContext): void;
/** Emit all auto-extracted metrics for a live span end. */
export declare function emitAutoExtractedMetrics(span: AnySpan, metrics: MetricsContext): void;
//# sourceMappingURL=auto-extract.d.ts.map