import type { Operation } from "../core/index.js"; import type { SubscriptionObserver } from "zen-observable-ts"; export type ServerParseError = Error & { response: Response; statusCode: number; bodyText: string; }; export declare function readMultipartBody>(response: Response, nextValue: (value: T) => void): Promise; export declare function parseHeaders(headerText: string): Record; export declare function parseJsonBody(response: Response, bodyText: string): T; export declare function handleError(err: any, observer: SubscriptionObserver): void; export declare function parseAndCheckHttpResponse(operations: Operation | Operation[]): (response: Response) => Promise; //# sourceMappingURL=parseAndCheckHttpResponse.d.ts.map