import { ObservableQuery, QueryOptions } from "./query"; import { QuerySharedContext } from "./context"; import { HasMapStore } from "../map"; export interface PostRequestOptions { headers?: Record; contentType?: "application/json" | "application/x-www-form-urlencoded" | "text/plain" | string; timeout?: number; } /** * ObservableQuery extension that supports POST requests */ export declare class ObservablePostQuery extends ObservableQuery { protected _body?: Body; protected _postOptions: PostRequestOptions; constructor(sharedContext: QuerySharedContext, baseURL: string, url: string, body?: Body | undefined, postOptions?: PostRequestOptions, options?: Partial); protected fetchResponse(abortController: AbortController): Promise<{ headers: any; data: T; }>; protected getCacheKey(): string; } export declare class ObservablePostQueryMap extends HasMapStore> { constructor(creater: (key: string) => ObservablePostQuery); }