/** * Implementation of the encrypted-secrets-vault CLI. Exposed as `runCli` and * supporting helpers so unit tests can exercise each command without * spawning a child process. The user-facing entry point is the * `scripts/secrets_vault_cli.mjs` wrapper, which calls `runCli` after a * dotenv load. * * The CLI is glue: it routes argv subcommands to functions in * `../secrets-vault` and reads vault path / encryption key from env vars * (with an interactive prompt fallback for the key). */ export declare function printHelp(): void; export declare function resolveVaultPath(env?: NodeJS.ProcessEnv): string; /** * Prompt function injected for testability. The production wrapper passes a * readline-backed prompter; unit tests pass a stub that returns canned * answers (or throws to simulate Ctrl+C / EOF). */ export type PromptFn = (question: string) => Promise; /** * Resolve the encryption key, preferring the env var and falling back to an * interactive prompt. Returns `null` when the prompt yields an empty value * or the prompter throws (Ctrl+C, EOF, etc.) — the caller treats `null` as * a fatal abort and exits with code 1. */ export declare function resolveEncryptionKey(env?: NodeJS.ProcessEnv, prompt?: PromptFn): Promise; export interface RunCliOptions { env?: NodeJS.ProcessEnv; prompt?: PromptFn; stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; } /** * Run the CLI with the given argv. Returns the intended exit code. Never * calls `process.exit` itself, so tests can drive it directly. */ export declare function runCli(argv: string[], opts?: RunCliOptions): Promise; //# sourceMappingURL=secretsVaultCli.d.ts.map