export interface Cause extends Error { } export interface CausedErrorOptions { cause?: Cause; [p: string]: any; } /** * This subclass of Error supports chaining. * If available, it uses the built-in support for property `.cause`. * Otherwise, it sets it up itself. * * @see https://github.com/tc39/proposal-error-cause */ export declare class CausedError extends Error { readonly cause?: Cause; constructor(message: string, options?: CausedErrorOptions); }