import { type AuthCliDeps } from './auth-cli.js'; export { getAuthHelp, getCliHelp, getInitHelp, getSetupGatewayHelp, getTuiHelp } from './cli-help.js'; export interface TuiCliOptions { resume: boolean; project?: string; port?: number; } /** Parse arguments for the `cortex tui` subcommand. */ export declare function parseTuiArgs(args: string[]): TuiCliOptions; /** Check whether a TCP server is listening on 127.0.0.1:port (500ms timeout). */ export declare function tuiPortListening(port: number): Promise; /** Execute the `cortex tui` subcommand: check daemon liveness, fork Ink client. */ export declare function cmdTui(args: string[]): Promise; export declare function getConfigOutput(): string; export interface CliResult { exitCode: number; stdout: string; stderr: string; } export interface RunCliDeps extends AuthCliDeps { } export declare function runCli(argv: string[], deps?: RunCliDeps): Promise; declare function main(): void; export { main };