import { ById, MangoQuery } from 'rxdb/plugins/core'; import { Observable } from 'rxjs'; import { EventSource } from 'eventsource'; export declare class RxRestClient { readonly endpointUrl: string; headers: ById; readonly eventSource: typeof EventSource | any; constructor(endpointUrl: string, headers?: ById, eventSource?: typeof EventSource | any); setHeaders(headers: ById): void; handleError(response: any): void; query(query: MangoQuery): Promise<{ documents: RxDocType[]; }>; observeQuery(query: MangoQuery): Observable; get(ids: string[]): Promise<{ documents: RxDocType[]; }>; set(docs: RxDocType[]): Promise; delete(ids: string[]): Promise; } export declare function createRestClient(endpointUrl: string, headers: ById, eventSource?: typeof EventSource | any): RxRestClient; export * from './utils.ts';