/** * Display boundary for every string the TUI hands to Ink. * * Provider output and pasted input may carry terminal control sequences, and * the terminal must never execute them. The shared `stripAnsi` helper only * covers numeric CSI, 7-bit OSC and `ESC `, so private-mode CSI * (`ESC [ ? 25 l`), the 8-bit C1 introducers and bare control bytes would reach * the terminal unchanged. * * Streaming adds a second problem: a sequence split across chunks is still * incomplete when the frame is rendered. Callers therefore keep the raw buffer * and re-derive the display text from it; a sequence that is not yet terminated * at the end of the buffer is withheld until the remaining bytes arrive. */ /** * Text from `raw` that is safe to render now. * * A trailing sequence whose terminator has not arrived yet is dropped from the * result and reappears once the caller passes the completed buffer. */ export declare function toDisplayText(raw: string): string; /** * Display text for a fixed-height row. Truncation only bounds the width, so a * message carrying line breaks would still grow the interactive frame. */ export declare function toSingleLineText(raw: string): string; //# sourceMappingURL=displayText.d.ts.map