export declare function getInitHelp(): string; export declare function getSetupGatewayHelp(): string; 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; export declare function getTuiHelp(): string; /** Execute the `cortex tui` subcommand: check daemon liveness, fork Ink client. */ export declare function cmdTui(args: string[]): Promise; export declare function getCliHelp(): string; export declare function getConfigOutput(): string; export interface CliResult { exitCode: number; stdout: string; stderr: string; } export declare function runCli(argv: string[]): Promise; declare function main(): void; export { main };