export interface FetchResponseObject { ok: boolean; status?: unknown; statusText?: unknown; headers?: unknown; text?: unknown; json?: unknown; } export declare function assertFetchResponseObject(response: unknown, prefix: string): asserts response is FetchResponseObject; export declare function assertFetchErrorResponseStatus(response: FetchResponseObject, prefix: string): asserts response is FetchResponseObject & { status: number; statusText: string; }; export declare function assertFetchResponseJson(response: FetchResponseObject, prefix: string): asserts response is FetchResponseObject & { json: () => Promise; }; export declare function assertFetchResponseJsonContentType(response: FetchResponseObject, prefix: string): void; export declare function readFetchErrorResponseBody(response: FetchResponseObject): Promise; export declare function formatFetchErrorResponseDetail(response: FetchResponseObject & { status: number; statusText: string; }, responseBody: string): string; export declare function getFetchResponseContentType(response: FetchResponseObject): string | null; //# sourceMappingURL=fetch-response.d.ts.map