//#region src/utils/tokens.d.ts
/**
 * Token counting utilities.
 *
 * Uses tiktoken when available for accurate counts.
 * Falls back to a heuristic (~3.5 chars per token + word count adjustment).
 */
declare function countTokens(text: string, model?: string): number;
declare function estimateTokens(text: string): number;
declare function countMessageTokens(messages: Array<{
  role?: string;
  content?: unknown;
}>, model?: string): number;
//#endregion
export { countMessageTokens, countTokens, estimateTokens };
//# sourceMappingURL=tokens.d.ts.map