export declare function printErrorAndExit(error: Error): void; export declare function executeFinally(promise: Promise, task: (isErrorOccurred: boolean) => Promise): Promise; export declare class NestedError extends Error { constructor(errors: Array, message?: string); } export declare function orNullIfFileNotExist(promise: Promise): Promise; export declare function orIfFileNotExist(promise: Promise, fallbackValue: T): Promise;