import type { KdfParams } from '../crypto/index.js'; export interface RunCliOpts { argv: string[]; /** Override the passphrase reader for tests. */ passphrase?: () => Promise | Buffer; /** Override stdout / stderr for tests. */ stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; /** Override the home/socket paths (defaults to env-resolved). */ env?: NodeJS.ProcessEnv; /** * Internal test-only override for the KDF cost during portal add. * The CLI binary never sets this. See PortalAddOpts.kdfParams. */ kdfParams?: KdfParams; } export interface CliExit { code: number; } /** * Pure dispatcher: takes argv (without the node binary or script path), * returns an exit code. Side effects route through the injected streams * and passphrase reader so tests don't poke at process.stdout etc. */ export declare function runCli(opts: RunCliOpts): Promise; //# sourceMappingURL=main.d.ts.map