import type { BaseMessage } from "@langchain/core/messages"; /** * Default token counter. Lazily imports a single gpt-tokenizer encoding * (o200k_base — current OpenAI models) so apps that don't enable summarization * never load the large encoding tables. Async because of the lazy import. */ export declare function defaultTokenCounter(text: string): Promise; /** * Sum a (possibly async) token counter across a message list. Media blocks are * counted as their placeholder text plus `MEDIA_TOKEN_ESTIMATE` each. */ export declare function countMessagesTokens(messages: readonly BaseMessage[], counter: (text: string) => number | Promise): Promise; //# sourceMappingURL=token-counter.d.ts.map