/** * Shared base for the workspace's typed errors. The repo had ~30 error classes * in five mutually incompatible shapes; this base captures the reference shape * (a `code` discriminant plus a `details` object that always echoes the code and * preserves `this.name`) so packages can converge incrementally without changing * their runtime field layout. */ export declare class CodedError extends Error { readonly code: Code; readonly details: Record; constructor(code: Code, message: string, details?: Record); } /** * Structural guard for coded errors. Matches both {@link CodedError} instances * and legacy errors that already carry a string `code`, so callers can stop * string-matching `.message` while classes migrate onto the base incrementally. */ export declare function isCodedError(error: unknown, code?: Code): error is CodedError; //# sourceMappingURL=coded-error.d.ts.map