export declare class UnrecoverableError extends Error { unrecoverable?: boolean | undefined; } export declare function assert(value: unknown, errMsg: string, unrecoverable?: boolean): asserts value; export declare function assertThenReturn(value: T | undefined, errMsg: string): NonNullable; export declare function assertThenReturnOrFail(value: T, errors: Error[], errMsg: string, failOnError: boolean): T; export declare const assertWithLog: (condition: boolean, errMsg: string) => void; export declare const concatMessages: (messages: string[]) => string; export declare const throwIfErrorsPresent: (errors: UnrecoverableError[], context?: string, thresholdToError?: number) => void; export declare function stringifyError(e: unknown, noStack?: boolean): string; //# sourceMappingURL=errors.d.ts.map