/** Check two `Response` fields equality. * * @example * ```ts * import { equalsResponse } from "https://deno.land/x/http_utils@$VERSION/response.ts"; * import { assert } from "https://deno.land/std@$VERSION/testing/asserts.ts"; * * assert( * equalsResponse( * new Response(null, { status: 204, headers: { "content-length": "0" } }), * new Response(null, { status: 204, headers: { "content-length": "0" } }), * ), * ); * ``` * * @deprecated Move to [response-utils](https://github.com/httpland/response-utils). */ export declare function equalsResponse(left: Response, right: Response): boolean; /** Strict check two `Response` fields equality. * * @example * ```ts * import { equalsResponse } from "https://deno.land/x/http_utils@$VERSION/response.ts"; * import { assert } from "https://deno.land/std@$VERSION/testing/asserts.ts"; * * assert( * await equalsResponse( * new Response("test1", { status: 200, headers: { "content-length": "5" } }), * new Response("test2", { status: 200, headers: { "content-length": "5" } }), * false, * ), * ); * ``` * * @throws {Error} In strict mode, if response body has already been read. */ export declare function equalsResponse(left: Response, right: Response, strict: boolean): boolean | Promise; /** Whether the input is `Response` or not. * * ```ts * import { isResponse } from "https://deno.land/x/http_utils@$VERSION/response.ts"; * import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts"; * * assertEquals(isResponse(new Response()), true); * assertEquals(isResponse({}), false); * assertEquals(isResponse(null), false); * ``` * * @deprecated Move to [response-utils](https://github.com/httpland/response-utils). */ export declare function isResponse(input: unknown): input is Response;