import type { RouteUsageCeiling } from '@sentropic/llm-mesh'; /** Unknown dimensions stay absent. Seconds are never converted into LLM tokens. */ export type SpeechUsage = Partial> & Partial>; export type SpeechDimension = keyof SpeechUsage; export declare const validateSpeechUsage: (usage: SpeechUsage) => void; export interface SpeechPrice { readonly providerId: string; readonly modelId: string; readonly region: string; readonly currency: 'USD'; readonly revision: string; readonly effectiveAtMs: number; readonly expiresAtMs: number; /** Integer micro-USD per integer number of native units. Includes applicable taxes/fees. */ readonly rates: Partial>; readonly fixedMicroUsd: number; } export declare const priceSpeechUsage: (price: SpeechPrice, usage: SpeechUsage) => number; export interface SpeechUsageUpdate { readonly eventId: string; readonly revision: number; readonly mode: 'cumulative' | 'incremental'; readonly usage: SpeechUsage; } export interface SpeechUsageState { mode: SpeechUsageUpdate['mode']; revision: number; totals: SpeechUsage; events: Record; } /** Persist this state in the existing hold transaction; recreating a client must not reset dedupe. */ export declare const normalizeSpeechUsage: (state: SpeechUsageState | undefined, update: SpeechUsageUpdate) => SpeechUsageState; //# sourceMappingURL=usage.d.ts.map