export type StandardError = any, TCause extends StandardError = any> = { code: string; message?: string; retry?: boolean | number; stack?: string; cause?: TCause; details?: TDetails; }; export declare class AppError = Record, TCause extends StandardError = StandardError> extends Error implements StandardError { code: string; message: string; stack?: string; cause?: TCause; details?: TDetails; retry?: boolean | number; constructor({ code, message, stack, details, cause, retry }: StandardError); static causedBy = Record, TCause extends StandardError = StandardError>(cause: Error | StandardError, err?: StandardError): AppError; toString(): string; toJSON(): StandardError; static renderString(appError: StandardError): string; } //# sourceMappingURL=errors.d.ts.map