export interface RichErrorOptions { title: string; message?: string; description?: string; hint?: string; origin?: string; meta?: Record; cause?: unknown; doShowStack: boolean; } export type RichError = Error & RichErrorOptions; export declare function richError(opts: RichErrorOptions): RichError; export declare function isRichError(value: unknown): value is RichError; export interface FormatOptions { colors?: boolean; maxCauseDepth?: number; } export declare function formatError(err: unknown, opts?: FormatOptions): string; export declare function printError(err: unknown, opts?: FormatOptions): void; //# sourceMappingURL=error.d.ts.map