export interface CostEstimate { inputCost: number; outputCost: number; total: number; known: boolean; } export declare function estimateCost(model: string, promptTokens: number, completionTokens: number): CostEstimate; /** Whether a spend cap can actually be enforced for this model. */ export declare function hasKnownPricing(model: string): boolean; export declare function formatCost(amount: number): string; /** * A rate, short enough to sit in a row. Fractions of a cent still matter at a million tokens. * * Here rather than in model-catalog.ts, which is where it was, for a measured reason: the model * picker prints a rate during a render, so this one pure formatter cannot be awaited — and * model-catalog.ts imports buildClient from engine.js, so importing it to format a number put * 810ms of the OpenAI SDK, execa and ts-morph in front of KONECK's first frame. This module has * no imports at all. Re-exported from model-catalog.js so its own callers were unaffected. */ export declare function rateText(perMillion: number): string; //# sourceMappingURL=pricing.d.ts.map