import type { Promisable } from 'type-fest'; export * from "./error.js"; export declare const isMockedExitError: (parameter: unknown) => parameter is Error & { name: string; message: string; stack?: string; cause?: unknown; }; /** * Mock `process.exit` within the scope of `test`. Guaranteed to return * `process.env` to its original state no matter how `test` terminates. * * **WARNING: it is not safe to run this function concurrently (e.g. with * `Promise.all`).** */ export declare function withMockedExit(test: (spies: { exitSpy: jest.SpyInstance; getExitCode: () => typeof process.exitCode; }) => Promisable): Promise;