export interface CohereCountResult { approximate: true; tokens: number; tokenizer: 'heuristic'; } export declare const cohereCount: (text: string) => CohereCountResult; /** * Hits Cohere's `POST /v1/tokenize` endpoint. The response shape we care * about is `{ tokens: number[] }`; only `tokens.length` is used. * * Endpoint reference: https://docs.cohere.com/reference/tokenize * * Returns the exact token count. Pulled out of `empirical.ts` so the * dependency surface (one fetch call, no SDK) stays here next to the * offline path it complements. */ export declare const cohereTokenizeApi: (text: string, modelId: string, apiKey: string, fetchImpl?: typeof fetch) => Promise; //# sourceMappingURL=tokenize-cohere.d.ts.map