/** Linux removes access to fd before Node necessarily observes the child exit. */ export declare const linuxOpenCodeProcessHasExited: (pid: number) => boolean; export declare const openCodeServeArguments: (port: number) => string[]; interface IOpenCodeOrphanRecoveryOptions { directory: string; executablePath: string; port: number; listenerExists(): boolean; ownsListener(pid: number, port: number): boolean; stopTimeoutMs: number; finalStopTimeoutMs: number; } /** Recover a detached child left behind by a previous controller's abrupt exit. */ export declare class OpenCodeOrphanRecovery { private readonly options; constructor(options: IOpenCodeOrphanRecoveryOptions); recover(signal?: AbortSignal): Promise; private isOwnedOrphan; private isPackagedExecutable; private liveGroupMembers; private waitForGroupExit; private signalGroup; } export {};