/** Minimal write surface shared by PTY/session backends for literal slash * commands. Historical backends return void on success; guarded backends * return false when the target pane/process is already unavailable. */ export interface RawCommandWriter { readonly supportsRawCommandPasteLine?: boolean; write(data: string): void | boolean; sendText?: (text: string) => void | boolean; sendSpecialKeys?: (...keys: string[]) => void | boolean; pasteText?: (text: string) => void | boolean; } export interface RawCommandWriteOptions { coco?: boolean; cocoThrottleMs?: number; pasteLine?: boolean; pasteSettleMs?: number; submitBeatMs?: number; delay?: (ms: number) => Promise; } /** Type one literal input line and report whether both the text and submit * writes were accepted by the backend. `undefined` remains legacy success; * explicit false is a proven drop and must never produce an activation ACK. */ export declare function writeRawCommandLine(backend: RawCommandWriter, content: string, opts?: RawCommandWriteOptions): Promise; export interface RawCommandDeliveryFinalizer { accepted: boolean; durableActivation: boolean; acknowledgeActivation: boolean; hasFollowUp: boolean; onAccepted: () => void; onFollowUp: () => void; onActivationAck: () => void; onDurableFailure: () => void; } /** Apply the raw-input side effects at the acceptance boundary. A rejected * text/Enter write can neither enqueue the follower nor ACK the durable head; * it must retire the worker generation so daemon exit recovery keeps the exact * journal routable. */ export declare function finalizeRawCommandDelivery(args: RawCommandDeliveryFinalizer): boolean; //# sourceMappingURL=raw-command-writer.d.ts.map