import { Session } from '@standardnotes/domain-core' import { HttpRequest, HttpRequestParams, HttpResponse, HttpResponseMeta } from '@standardnotes/responses' export interface HttpServiceInterface { setHost(host: string): void setSession(session: Session): void get(path: string, params?: HttpRequestParams, authentication?: string): Promise> post(path: string, params?: HttpRequestParams, authentication?: string): Promise> put(path: string, params?: HttpRequestParams, authentication?: string): Promise> patch(path: string, params: HttpRequestParams, authentication?: string): Promise> delete(path: string, params?: HttpRequestParams, authentication?: string): Promise> runHttp(httpRequest: HttpRequest): Promise> setCallbacks( updateMetaCallback: (meta: HttpResponseMeta) => void, refreshSessionCallback: (session: Session) => void, ): void deinit(): void }