/** Catch child process a crash and returns the code */
type ExitResult = number | {
    exitCode: number;
};
declare const safeExit: <T extends ExitResult>(func: () => T, shouldExitOnFail?: boolean) => T;
declare const safeExitAsync: <T extends ExitResult>(func: () => Promise<T>, shouldExitOnFail?: boolean) => Promise<T>;
export { safeExit, safeExitAsync };
//# sourceMappingURL=safeExit.d.ts.map