export declare function getError<E = Error>(fn: () => unknown): E | undefined;
