import type { MessagePaste } from '../types.js'; /** Pastes this small never turn into a card, whatever the model. */ export declare const PASTE_CARD_MIN_BYTES = 1000; /** The most text sent inline, for one paste and for a whole message. */ export declare const PASTE_INLINE_CAP: number; export declare function utf8Bytes(text: string): number; /** Terminals and some browsers put CR line endings on the clipboard. */ export declare function normalizeNewlines(text: string): string; /** Counts lines as a paste's label shows them: a final newline starts none. */ export declare function countLines(text: string): number; /** The inline limit for a context window, for a host that has not reported its own. */ export declare function pasteInlineMaxBytes(contextWindow: number | undefined): number; /** Splits a message into its text and the pastes its placeholders stand for. */ export declare function splitPastes(content: string, pastes: MessagePaste[]): (string | MessagePaste)[]; /** The message a composer sends: its text, then a placeholder for each saved paste. */ export declare function joinPastes(input: string, pastes: MessagePaste[]): string;