import { type ChildProcess, type SpawnOptions } from "node:child_process"; export interface CliPowerShellWarmStartOptions { platform?: NodeJS.Platform; cwd: string; env: NodeJS.ProcessEnv; candidates?: readonly string[]; spawn?: (command: string, args: string[], options: SpawnOptions) => ChildProcess; startupTimeoutMs?: number; } export interface ReadyCliPowerShellSession { child: ChildProcess; cwd: string; env: NodeJS.ProcessEnv; releaseStartupListeners(): void; } /** Begin one unclaimed native PowerShell session while the CLI imports its main runtime graph. */ export declare function startCliPowerShellWarmStart(options: CliPowerShellWarmStartOptions): void; /** Claim the CLI warm start exactly once; callers attach ownership before releasing its listeners. */ export declare function claimCliPowerShellWarmStart(): Promise; export declare function resetCliPowerShellWarmStartForTests(): Promise; //# sourceMappingURL=early-powershell-session.d.ts.map