import type { Readable, Writable } from "node:stream"; /** Options for `confirm`. */ export interface ConfirmOptions { /** Question to display. A trailing space is added if absent. */ question: string; /** Stream to read the answer from. Defaults to `process.stdin`. */ input?: Readable; /** Stream to print the question on. Defaults to `process.stderr`. */ output?: Writable; } /** * Reads a single line from `input` and returns `true` for an * affirmative answer (`y` / `yes`, case-insensitive), `false` * otherwise. Empty / EOF / Ctrl-C are all treated as "no" so the * default action stays conservative. */ export declare function confirm(options: ConfirmOptions): Promise;