import { type Logger } from "../logger.ts"; /** * Perform a `fetch` request, logging the request and response in the same manner as * `FetchHttpApi` does for Client-Server API requests. * * Neither the request nor the response body is logged, as they routinely contain credentials. * Query parameter values are redacted for the same reason. * * @internal * @param logger - the logger to write the request and response lines to. * @param resource - the URL to request. * @param options - the options to pass to `fetch`. * @param fetchFn - the `fetch` implementation to use, defaults to the global `fetch`. * @returns the `Response`, whatever its status code. * @throws rethrows whatever `fetch` threw, having logged it. */ export declare function fetchWithLogging(logger: Logger, resource: URL | string, options?: RequestInit, fetchFn?: typeof globalThis.fetch): Promise; //# sourceMappingURL=fetch.d.ts.map