import { EventManager } from '@webprovisions/platform'; import { StateBag, ClientCommand, ClientAction } from './http-middleware'; export interface ServerEntry { id: string; type: string; content: any; actions: { [label: string]: any; }; tags: string[]; relation: string; timestamp: string; } export interface ServerEnvelope { entries: ServerEntry[]; globalState: StateBag; resolveCommand?: string; } export declare class HttpClient { endpointUrl: string; events: EventManager; constructor(projectionPath: string); post: (body?: {}) => Promise; connect: () => Promise; tell: (command: ClientCommand, localState: StateBag, globalState: StateBag) => Promise; respond: (action: ClientAction, localState: StateBag, globalState: StateBag) => Promise; handleResponse: (response: Response) => ServerEnvelope | Promise; handleErrorResponse: (errorResponse: any) => ServerEnvelope | Promise; } //# sourceMappingURL=http-client.d.ts.map