export interface PreparedHotswapCodexHome { codexHomeOverride?: string; sqliteHomeOverride?: string; projectLocalCodexHomeForCleanup?: string; runtimeCodexHomeForCleanup?: string; } export interface HotswapLifecycle { prepareCodexHomeForLaunch: (cwd: string, sessionId: string, env: NodeJS.ProcessEnv) => Promise; preLaunch: (cwd: string, sessionId: string, notifyTempContract: unknown, codexHomeOverride: string | undefined, enableNotifyFallbackAuthority: boolean, worktreeDirty: boolean) => Promise; postLaunch: (cwd: string, sessionId: string, codexHomeOverride: string | undefined, enableNotifyFallbackAuthority: boolean, projectLocalCodexHomeForCleanup?: string) => Promise; cleanupRuntimeCodexHome: (runtimeCodexHome?: string, projectCodexHome?: string) => Promise; normalizeCodexLaunchArgs: (args: string[]) => string[]; injectModelInstructionsBypassArgs: (cwd: string, args: string[], env: NodeJS.ProcessEnv, defaultFilePath?: string) => string[]; sessionModelInstructionsPath: (cwd: string, sessionId: string) => string; resolveOmxRootForLaunch: (cwd: string, env: NodeJS.ProcessEnv) => string | undefined; resolveNotifyTempContract: (args: string[], env: NodeJS.ProcessEnv) => { contract: unknown; passthroughArgs: string[]; }; } export interface HotswapOptions { cwd?: string; env?: NodeJS.ProcessEnv; home?: string; argv: string[]; lifecycle: HotswapLifecycle; } export interface CodexRunResult { status: number; signal: NodeJS.Signals | null; stderr: string; } export declare function stripHotswapArg(args: string[]): string[]; export declare function buildResumeArgsWithPreservedFlags(originalArgs: string[], sessionId: string): string[]; export declare function runAuthHotswap(options: HotswapOptions): Promise; //# sourceMappingURL=hotswap.d.ts.map