import { ModelPricing, CostInputs, Cost } from '@ai-billing/types'; /** * Computes total cost for an OpenAI completion from {@link ModelPricing} and token usage. * * @param params - Calculation inputs: `pricing` is {@link ModelPricing} or `undefined` when the model is not * in your table; `usage` is token counts as {@link CostInputs}. * @returns A {@link Cost}, or `undefined` when `pricing` is missing. * @internal */ declare const calculateOpenAICost: (params: { pricing: ModelPricing | undefined; usage: CostInputs; }) => Cost | undefined; export { calculateOpenAICost };