/**
 * Codex runtime router — testable logic for src/bin/codex-runtime.ts.
 *
 * All inter-module deps are resolved via require() at call-time so tests can
 * inject stubs via require.cache before calling main().
 *
 * Routing:
 *   argv[2] === 'auth'  → delegate to runCodexAuth(argv.slice(3)), exit with code
 *   else               → resolve active profile, set CODEX_HOME, load ccs
 *                        CCS manages the process lifecycle; entry MUST NOT
 *                        call process.exit() when main returns -1.
 *
 * Return value contract:
 *   ≥ 0  → auth branch: caller should process.exit(code)
 *   -1   → CCS branch: CCS has taken over the process; caller must NOT exit
 */
/**
 * Main entry-point for the ccsx / codex-runtime binary.
 *
 * @param argv - process.argv (or test-supplied equivalent)
 * @returns ≥0 exit code for auth branch; -1 for CCS branch (no exit needed)
 */
export declare function main(argv: string[]): Promise<number>;
//# sourceMappingURL=codex-runtime-router.d.ts.map