/**
 * Shared usage/cost calculation for Shortcut LLM providers.
 *
 * Both shortcut-stream.ts and shortcut-invoke.ts need identical logic
 * to convert raw token counts into owned AI Usage objects with cost breakdown.
 */
import type { Api, AssistantMessage, Model, StopReason } from '../../ai/types.js';
type Usage = AssistantMessage['usage'];
/**
 * Build a owned AI Usage object from raw token counts and model cost rates.
 */
export declare function buildUsage(rawUsage: Record<string, number>, model: Model<Api>): Usage;
/** Map backend stop_reason strings to owned AI StopReason values. */
export declare function mapStopReason(raw: string): StopReason;
export {};
//# sourceMappingURL=llm-usage.d.ts.map