1 | import type { Operation } from "../core/index.js";
|
2 | import type { SubscriptionObserver } from "zen-observable-ts";
|
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, nextValue: (value: T) => void): 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: SubscriptionObserver<any>): void;
|
12 | export declare function parseAndCheckHttpResponse(operations: Operation | Operation[]): (response: Response) => Promise<any>;
|
13 |
|
\ | No newline at end of file |