UNPKG

@light-merlin-dark/tok

Version:

Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support

14 lines 417 B
export type ModelPrice = { prompt: number; completion: number; }; export declare class PriceTable { private prices; constructor(initial?: Record<string, ModelPrice>); private setDefaults; get(model: string): ModelPrice | undefined; set(model: string, price: ModelPrice): void; list(): Map<string, ModelPrice>; has(model: string): boolean; } //# sourceMappingURL=PriceTable.d.ts.map