export declare type CustomErrorConstructor = new (message?: string) => T; export declare class CustomError extends Error { get name(): string; static [Symbol.hasInstance](instance: unknown): boolean; }