/**
 * pricing.ts
 *
 * Model pricing lookup and cost calculation for OpenAI and Anthropic models.
 * Used by custom providers (agentic, instrumented) to calculate
 * per-request cost from token counts.
 *
 * Prices are per-token (not per-million) for simpler arithmetic.
 * Source: https://openai.com/api/pricing/ and https://docs.anthropic.com/en/docs/about-claude/models
 */
interface ModelPricing {
    /** Cost per input/prompt token */
    input: number;
    /** Cost per output/completion token */
    output: number;
}
/**
 * Calculate the cost in USD for a given model and token usage.
 * Returns 0 if the model is not in the pricing table.
 */
export declare function calculateCost(model: string, promptTokens: number, completionTokens: number): number;
/**
 * Format a cost value as a human-readable USD string.
 * - Under $0.01: shows 4 decimal places (e.g., "$0.0023")
 * - Under $1: shows 2 decimal places (e.g., "$0.45")
 * - $1+: shows 2 decimal places (e.g., "$12.50")
 */
export declare function formatCost(cost: number): string;
/**
 * Look up pricing for a model. Supports exact matches and prefix
 * matching (e.g., "gpt-4o-2024-08-06" matches "gpt-4o").
 * Returns undefined if no pricing is found.
 */
export declare function lookupPricing(model: string): ModelPricing | undefined;
export {};
