1 | import { Operation } from "../core";
|
2 | import { Observer } from "../../utilities";
|
3 | export type ServerParseError = Error & {
|
4 | response: Response;
|
5 | statusCode: number;
|
6 | bodyText: string;
|
7 | };
|
8 | export declare function readMultipartBody<T extends object = Record<string, unknown>>(response: Response, observer: Observer<T>): Promise<void>;
|
9 | export declare function parseHeaders(headerText: string): Record<string, string>;
|
10 | export declare function parseJsonBody<T>(response: Response, bodyText: string): T;
|
11 | export declare function handleError(err: any, observer: Observer<any>): void;
|
12 | export declare function readJsonBody<T = Record<string, unknown>>(response: Response, operation: Operation, observer: Observer<T>): void;
|
13 | export declare function parseAndCheckHttpResponse(operations: Operation | Operation[]): (response: Response) => Promise<any>;
|
14 |
|
\ | No newline at end of file |