/** * Logger interface for CostCalculator */ export interface CostLogger { debug: (message: string, meta?: Record) => void; error: (message: string, meta?: Record) => void; warn: (message: string, meta?: Record) => void; } export declare const setCostLogger: (logger: CostLogger) => void; export declare class CostCalculator { private static readonly PRICING; /** * Calculate accurate cost for a model response */ static calculateCost(model: string, inputTokens?: number, outputTokens?: number, totalTokens?: number): number; /** * Normalize model names to match pricing keys, with optional primary model context for synthesis operations */ private static normalizeModelName; /** * Fallback cost calculation for unknown models */ private static calculateFallbackCost; /** * Validate and sanitize cost values */ static validateCost(cost: any, context?: string): number; /** * Calculate total cost with validation across multiple responses */ static calculateTotalCost(responses: Array<{ cost?: number; model?: string; tokens?: number; }>, primaryModel?: string): number; /** * Get pricing information for a model */ static getPricing(model: string): { input: number; output: number; } | null; /** * Estimate cost before making API call */ static estimateCost(model: string, estimatedInputTokens: number, estimatedOutputTokens?: number): number; } //# sourceMappingURL=CostCalculator.d.ts.map