/** * Collects a child's exit status from the kernel, for the runtime that can lose * it: call it with the child's pid when its `close` never comes. * * Returns the raw wait status for `decode`, or null while the child runs or * once someone else has reaped it. The whole thing is null where exits are not * lost: Node, and Bun anywhere but macOS. */ export declare const reap: ((pid: number) => number | null) | null; /** A wait status as a shell reports it: the exit code, or 128 + the signal. */ export declare function decode(status: number): number; /** The runtime and kernel race to report an exit; neither may hold up the other. */ export declare function exitOf(child: { pid: number; exitCode: number | null; signalCode: NodeJS.Signals | null; exited: Promise; }, kernel: { reap(pid: number): number | null; }): Promise; /** Shell status for either a normal exit or a signal death. */ export declare function shellCode(code: number | null, signal: NodeJS.Signals | null): number;