import type { ProcessLike } from "./process-like.js"; /** * A `process` for tests that need `NodePs` to really spawn (real git, real * exit codes) but must not really exit. `exit` and `chdir` are recorded * instead of taken, and signal handlers are dispatched by hand rather than by * the OS, so nothing leaks into the test runner. */ export declare class FakeProcess implements ProcessLike { platform: NodeJS.Platform; pid: number; argv: string[]; env: NodeJS.ProcessEnv; readonly exits: number[]; private path; private readonly dead; private readonly handlers; /** Real existence checks, so a pid the test did not invent answers honestly. */ kill(pid: number, signal: 0): boolean; /** Reports a pid as gone whatever the OS thinks. */ markDead(pid: number): void; cwd(): string; chdir(path: string): void; exit(code: number): void; lastExit(): number | undefined; on(event: string, handler: (...args: unknown[]) => void): void; once(event: string, handler: () => void): void; off(event: string, handler: (...args: unknown[]) => void): void; /** Stands in for the OS, which never delivers anything to a fake. */ dispatch(event: string): void; }