export declare const BODY_TRUNCATE_MAX_CHARS = 1200; export declare const NESTED_BODY_TRUNCATE_MAX_CHARS = 600; /** * Truncates `body` to roughly `maxChars`, keeping a head and tail portion so an * opening question and a trailing summary both survive. Never cuts inside a * ``` or ~~~ fence: the cut points snap outward to the nearest fence-safe line * boundary — an unbalanced fence here would swallow every section rendered * after it in the same tick. A single line too long to fit a budget on its own * (headEnd stays -1, or no line fits from the tail) falls back to a * character-level slice of that line rather than dropping it entirely. */ export declare function truncateBody(body: string, maxChars: number, url?: string): string;