import * as readline$1 from "node:readline"; import * as tty from "node:tty"; //#region src/utils/cli.d.ts /** * Extract passthrough arguments after a marker (default: "--") */ declare function extractPassthroughArgs(argv: string[], marker?: string): string[]; /** * Create a readline interface with standard defaults */ declare function createReadlineInterface(input?: NodeJS.ReadableStream, output?: NodeJS.WritableStream): readline$1.Interface; /** * Prompt user for input and return the trimmed answer */ declare function promptUser(question: string): Promise; /** * Prompt user for sensitive input (e.g., API keys) with the echo masked. * Falls back to a normal prompt when stdin is not an interactive TTY. */ declare function promptSecret(question: string): Promise; /** * TTY streams for direct terminal I/O (useful when stdin is piped) */ interface TtyStreams { fd: number; read: tty.ReadStream; write: tty.WriteStream; cleanup: () => void; } /** * Open /dev/tty for direct terminal I/O */ declare function openTtyStreams(): TtyStreams; //#endregion export { TtyStreams, createReadlineInterface, extractPassthroughArgs, openTtyStreams, promptSecret, promptUser };