import type { HostNetwork } from "../host/host.js"; export type FetchMock = { url?: string; urlPattern?: string; method?: string; body?: string | Record; bodyPattern?: string; returnFile?: string; return?: unknown; status?: number; headers?: Record; }; /** The `fetch` of a host that answers from `mocks`, for the test runner. */ export declare function fetchMock(mocks: FetchMock[]): HostNetwork["fetch"];