import type { AIProviderUsage } from '../types.js'; /** * What one request used, with one meaning for every provider (ADR-0061 decision 6 amendment 1-5). * * inputTokens every input token, cached ones included * cacheReadTokens the part of inputTokens read from the provider's cache * cacheWriteTokens the part of inputTokens written to the provider's cache * outputTokens every output token, reasoning included * * Each provider counts these differently, so each has one function here. A count the provider did not report stays * undefined. */ /** OpenAI counts cached tokens inside prompt_tokens, and reasoning inside completion_tokens. It charges no cache write. */ export declare function openAIUsageOf(model: string, usage: any): AIProviderUsage; /** Anthropic counts cache reads and writes apart from input_tokens; thinking is inside output_tokens. */ export declare function anthropicUsageOf(model: string, usage: any): AIProviderUsage; /** Gemini counts cached content inside promptTokenCount, and thinking apart from candidatesTokenCount. */ export declare function geminiUsageOf(model: string, usage: any): AIProviderUsage;