export declare function jsonResponse(body: unknown, status?: number): Response; export declare function parseUrl(input: Request | string): URL; export type RecordedRequest = { method: string; pathname: string; body?: unknown; }; export type RouteHandler = (request: Request, url: URL) => Response | Promise | undefined; /** * Replaces globalThis.fetch with a mock that: * - Records every request (method, pathname, parsed body) into the returned array. * - Tries each handler in order; the first to return a Response wins. * - Falls back to an empty paginated list ({ results: [], count: 0 }). */ export declare function mockFetch(...handlers: RouteHandler[]): RecordedRequest[]; export declare function collect(generator: AsyncGenerator): Promise;