import type { Awaitable } from "../../libs/awaitable/mod.ts"; /** * Check if a closure throws * @param closure closure to check * @returns true if the closure throwed */ export declare function throws(closure: () => unknown): boolean; /** * Check if an async closure rejects (throws) * @param closure async closure to check * @returns a promise that returns true if the closure rejected */ export declare function rejects(closure: () => Awaitable): Promise;