/** * Confirmation and text input prompts. * * Provides yes/no confirmation, single-line text input, * and multiline text input from readable streams. */ export type CancellablePromptResult = { readonly kind: 'value'; readonly value: T; } | { readonly kind: 'cancelled'; }; /** * Prompt user for simple text input * @returns User input or null if cancelled */ export declare function promptInput(message: string): Promise; /** Prompt for text while treating a standalone Escape as cancellation. */ export declare function promptInputWithCancel(message: string): Promise>; /** * Read multiline input from a readable stream. * An empty line finishes input. If the first line is empty, returns null. * Exported for testing. */ export declare function readMultilineFromStream(input: NodeJS.ReadableStream): Promise; /** * Prompt user for yes/no confirmation * @returns true for yes, false for no */ export declare function confirm(message: string, defaultYes?: boolean): Promise; /** Confirm while treating a standalone Escape as cancellation. */ export declare function confirmWithCancel(message: string, defaultYes?: boolean, signal?: AbortSignal): Promise>; //# sourceMappingURL=confirm.d.ts.map