export declare function throws<Err extends Error = Error>(fn: () => any): Err;
