export interface ModelPrice { inputPerMTok: number; outputPerMTok: number; } export interface TokenUsage { inputTokens: number; outputTokens: number; } export interface CostEstimate { amountUsd: number; knownModel: boolean; inputTokens: number; outputTokens: number; calls: number; } export declare const PRICE_TABLE: Record; export declare const PRICE_TABLE_VERIFIED_AT = "2026-05-05"; export declare const PRICE_TABLE_STALE_AFTER_DAYS = 90; export declare const DARIO_DEFAULT_BASE_URL = "http://localhost:3456"; export declare function priceFor(model: string, env?: Record): ModelPrice | undefined; export declare function estimateCost(usage: TokenUsage & { calls: number; }, model: string, env?: Record): CostEstimate; /** * Multi-model cost estimate (v0.10.0). * * Sums `estimateCost` across a per-model usage map — used when the run * spread requests across models (per-stage model overrides). The aggregate * `amountUsd` is the sum of priced costs. `knownModel` is true only when * **every** model with non-zero usage is priced (known table entry or * env-var override). Unknown models contribute $0 (same as the single- * model case) and flip `knownModel` to false; the CLI renders `$?` in * that situation rather than understating the bill. * * `byModel` retains the per-model breakdown so the CLI can render a * multi-line cost summary when more than one model was used. */ export interface MultiModelCostEstimate extends CostEstimate { byModel: Array<{ model: string; estimate: CostEstimate; }>; } export declare function estimateCostMultiModel(usageByModel: Record, env?: Record): MultiModelCostEstimate; export declare function formatCostLine(estimate: CostEstimate, model: string): string; export declare function looksLikeDario(baseUrl: string): boolean; export declare function formatUsd(amount: number): string; export declare function formatTokens(n: number): string; export declare function daysAgo(isoDate: string, now?: number): number; //# sourceMappingURL=pricing.d.ts.map