import { createConfig } from './lib/config.js';
import { type ExitCode } from './types.js';
import { CLI_VERSION } from './version.js';
export { CLI_VERSION };
export type RunCliOptions = {
    argv?: string[];
    /** Its `isTTY` decides between the banner and the bare version for `--version`. */
    stdout?: NodeJS.WritableStream & {
        isTTY?: boolean;
    };
    stderr?: NodeJS.WritableStream;
    stdin?: NodeJS.ReadableStream;
    env?: NodeJS.ProcessEnv;
    loginHandler?: (config: ReturnType<typeof createConfig>) => Promise<ExitCode>;
};
export declare function runCli(options?: RunCliOptions): Promise<ExitCode>;
