export default function throws(fn: () => any): boolean | Promise;