import type { BaseMessage } from "@langchain/core/messages"; /** * Tokens charged per media block when counting history. A conservative * per-image estimate (a high-detail image is roughly 1k tokens on current * vision models); audio/video/files are charged the same flat amount. The * bytes themselves are never tokenized — base64 would count as tens of * thousands of text tokens and trigger summarization on a single image. */ export declare const MEDIA_TOKEN_ESTIMATE = 1000; export interface MessageText { /** * Text blocks concatenated; each media block rendered as `[image]`/`[audio]`/ * `[video]`/`[file]`/`[document]` (legacy `image_url` as `[image]`); any other * block JSON-stringified. */ readonly text: string; /** Number of media blocks rendered as placeholders. */ readonly mediaCount: number; } /** * A message's content as text for summarization: a string is returned as is; * a block list keeps its text blocks, renders each media block as a * placeholder — so neither the token counter nor the summarizer prompt ever * sees base64 — and JSON-stringifies every other block (tool use, reasoning). */ export declare function messageContentText(content: BaseMessage["content"]): MessageText; //# sourceMappingURL=message-text.d.ts.map