/**
 * Normalize suppressed type-ahead text into the single-line REPL prompt.
 * readline's prompt is one line, so Enter typed during an active chain is
 * preserved as spacing rather than being auto-submitted behind the user.
 */
export declare function normalizeTypeaheadDraftForPrompt(text: string): string;
export interface QueuedInputChunkResult {
    mutated: boolean;
    ignoredEscape: boolean;
}
export declare function queuedInputBytesToText(bytes: number[]): string;
export declare function drainQueuedInputBytes(bytes: number[]): string;
export declare function applyQueuedInputChunk(bytes: number[], chunk: Buffer, maxBytes?: number): QueuedInputChunkResult;
