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