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