import type { OutputStream, MutableRegion } from '../../output-stream.js'; import type { MessageRef, RichBlock, ActionElement, Destination } from '../../types.js'; import type { TuiConnection } from './tui-connection.js'; export declare class TuiOutputStream implements OutputStream { private conn; private streamId; private seq; private parentRef; readonly refs: MessageRef[]; private destination; /** Adapter reference for posting messages through outbound methods */ private adapter; constructor(conn: TuiConnection, destination: Destination, adapter: { postMessage(dest: Destination, content: { text: string; richBlocks?: RichBlock[]; }): Promise; postInteractive(dest: Destination, content: { text: string; richBlocks?: RichBlock[]; actions: ActionElement[]; }): Promise; }, opts?: { threadId?: string | null; }); private _nextSeq; emitText(text: string): void; openMutable(text: string): MutableRegion; postInteractive(text: string, opts?: { richBlocks?: RichBlock[]; actions?: ActionElement[]; }): Promise; flush(): Promise; getRefs(): MessageRef[]; getParentRef(): MessageRef | null; }