export type ResolveTuiWsPortResult = {
    ok: true;
    port: number;
} | {
    ok: false;
    message: string;
};
/**
 * Resolve TUI WebSocket listen port from CLI args and env (same rules as legacy `index.ts`).
 * `args` should be `process.argv.slice(2)`.
 */
export declare function resolveTuiWsPort(args: string[], env: NodeJS.ProcessEnv): ResolveTuiWsPortResult;
//# sourceMappingURL=tui-port-resolver.d.ts.map