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