/** * Extended Error class that provides access to the error cause's code property. * Useful for preserving and accessing error codes from underlying errors. * * @example * ```typescript * throw new ErrorWithCause('Failed to process', { * cause: { code: 'INSUFFICIENT_FUNDS' } * }); * ``` */ export declare class ErrorWithCause extends Error { /** * Gets the error code from the cause object if it exists. * * @returns The error code from the cause, or undefined if not present */ get code(): unknown; }