export declare const PRICING_SOURCE = "https://www.anthropic.com/pricing#api"; export declare const OPUS_PRICE_DATE = "2026-07-25"; /** Default GBP conversion. USD amounts are divided by this to yield GBP. */ export declare const USD_PER_GBP = 1.34; /** Sonnet 5 uses the same Opus-family tokenizer as Opus 5, so its token counts * need no adjustment: the default factor is 1.0 (no scaling). The factor is * kept as a config knob — an explicit value still scales counts before the * Sonnet rate, for pricing an older tokenizer's volume if ever needed. */ export declare const SONNET_TOKENIZER_FACTOR = 1; /** USD per 1,000,000 tokens. `cacheWrite5m` is the 5-minute cache-creation rate; * session metering prices all `cache_creation_input_tokens` at this rate. * Cache rates follow Anthropic's 1.25x (5m write) and 0.1x (read) multipliers. */ export declare const OPUS_5: { readonly input: 5; readonly cacheWrite5m: 6.25; readonly cacheRead: 0.5; readonly output: 25; }; export declare const SONNET_5: { readonly input: 3; readonly cacheWrite5m: 3.75; readonly cacheRead: 0.3; readonly output: 15; }; export declare const HAIKU_4_5: { readonly input: 1; readonly cacheWrite5m: 1.25; readonly cacheRead: 0.1; readonly output: 5; }; /** A bundle of token counts for one day or one total. Cost inputs live here so * pricing.ts has no dependency on the metering core (which imports this). */ export interface MeteringTokens { output: number; input: number; cacheWrite: number; cacheRead: number; } export interface PricingConfig { usdPerGbp: number; tokenizerFactor: number; priceDate: string; } export declare function defaultPricingConfig(): PricingConfig; /** GBP cost of a token bundle at the Opus 5 rate (no tokenizer scaling). */ export declare function opusCostGBP(t: MeteringTokens, cfg: PricingConfig): number; /** GBP cost at the Sonnet 5 rate with every token count scaled by the * tokenizer factor (1.0 by default = no scaling). */ export declare function sonnetCostGBP(t: MeteringTokens, cfg: PricingConfig): number; /** True when `priceDate` is more than 90 days before `nowIso`. Both are ISO * date strings; comparison is in whole UTC days. */ export declare function pricingIsStale(cfg: PricingConfig, nowIso: string): boolean; //# sourceMappingURL=pricing.d.ts.map