import type { ReadStream } from 'node:tty'; /** * Read a passphrase from a TTY without echoing it. Returns the passphrase as a * Buffer so the caller can zeroize it after use. * * The implementation reads byte-by-byte in raw mode, handling Enter, backspace, * and Ctrl-C. It is intentionally testable: pass a stdin/stderr override. */ export interface ReadPassphraseDeps { stdin?: ReadStream; stderr?: NodeJS.WritableStream; } export declare function readPassphrase(prompt: string, deps?: ReadPassphraseDeps): Promise; //# sourceMappingURL=passphrase.d.ts.map