export interface QueuedFlushCompositor { peekQueuedText(): QueuedFlushSnapshot | undefined; reserveQueued?(snapshot: QueuedFlushSnapshot): void; releaseQueued?(snapshot: QueuedFlushSnapshot): void; dropQueued(snapshot: QueuedFlushSnapshot): number; } export interface QueuedFlushSnapshot { readonly text: string; readonly preview: string; readonly payloads: readonly unknown[]; } export interface QueuedFlushControl { hasPromotableForeground(): boolean; promoteActiveForeground(queuedNote?: { readonly text: string; claimed: boolean; }): Promise; } export interface QueuedFlushResult { jobs: readonly { jobId: string; label: string; sharesWorktree?: boolean; }[]; flushedText?: string; flushedPreview?: string; } export declare function previewOneLine(text: string): string; export declare function promoteWithQueuedFlush(control: QueuedFlushControl, compositor: QueuedFlushCompositor | null, persist?: (text: string) => Promise | void): Promise;