export type PricingProvider = 'openai' | 'anthropic' | 'groq' | 'ollama' | 'opencode' | 'other'; export interface ModelPrice { provider: PricingProvider; /** USD per 1M input tokens */ inputPer1M: number; /** USD per 1M output tokens */ outputPer1M: number; } export declare const FALLBACK_PRICE: ModelPrice; export declare function getModelPrice(model: string): ModelPrice; export declare function roundCost(cost: number): number; /** Approximate token accounting: chars/4 heuristic for all models (v1). */ export declare function countTokens(text: string): number; /** USD cost from token counts against the model pricing table. */ export declare function estimateCostFromTokens(model: string, inputTokens: number, outputTokens: number): number; export interface CostEstimate { estimatedCost: number; currency: 'USD'; model: string; inputTokens: number; outputTokens: number; } /** Cost estimate with a one-time warning for models missing from the table. */ export declare function estimateCost(model: string, inputTokens: number, outputTokens: number): CostEstimate; //# sourceMappingURL=modelPricing.d.ts.map