import { ITokenizer } from './i-tokenizer.js'; import { LruCache } from '../../utils/lru-cache.js'; /** * Remote tokenizer that uses Google AI's countTokens REST endpoint — * addresses issue #124's GoogleAITokenizer requirement. * * Network calls are memoized in an LruCache with a TTL so repeated * token counts don't re-hit the API. If the request fails (network, * 4xx, 5xx) we surface the error to the caller — TokenCounter above * is responsible for deciding whether to fall back to a local * tokenizer. */ export declare class GoogleAITokenizer implements ITokenizer { readonly modelName: string; private readonly apiKey; private readonly endpoint; private readonly cache; private readonly timeoutMs; constructor(modelName: string, apiKey: string, options?: { endpoint?: string; cache?: LruCache; timeoutMs?: number; }); countTokens(text: string): Promise; free(): void; } //# sourceMappingURL=google-ai-tokenizer.d.ts.map