export declare function isErrorType(error: unknown, constructor: new (...x: any[]) => T, predicate?: (t: T) => boolean): error is T;