export type BillingMode = "per-token" | "subscription" | "free"; export interface ModelPricing { inputPerMillion: number; outputPerMillion: number; updatedAt: string; } /** * Get the billing mode for a provider. */ export declare function getBillingMode(provider: string): BillingMode; /** * Look up pricing for a provider + model, resolving aliases. */ export declare function getProviderPricing(provider: string, model: string): ModelPricing | null; /** * Calculate actual cost from token counts. * Returns null when tokens are unavailable, 0 for free providers. */ export declare function calculateCost(provider: string, model: string, inputTokens: number | null, outputTokens: number | null): number | null; /** * Estimate cost for a planned run (before execution). * Uses the same calculation as calculateCost but clearly named for pre-run usage. */ export declare function estimateCost(provider: string, model: string, estInputTokens: number, estOutputTokens: number): number | null;