/** * A class that extends `Error` and adds a `type` property and a `handled` flag. * * Starts with "I" to avoid conflict with built-in Error type. */ export declare class IError extends Error { readonly type: TType; readonly message: string; readonly diagnosticInfo?: string; handled: boolean; data: { [key: string]: unknown; }; constructor({ type, message, diagnosticInfo, handled, data, }: { type: TType; message: string; diagnosticInfo?: string; handled?: boolean; data?: IError['data']; }); } /** Use this to test if an `unknown` is probably an [[`IError`]]. */ export declare function hasIErrorProperties(obj: unknown): obj is IError;