import { HttpClient } from "aurelia-fetch-client"; import { EventAggregator } from "aurelia-event-aggregator"; import { UIApplication } from "./ui-application"; export declare class UIHttpService { httpClient: HttpClient; appState: UIApplication; eventAggregator: EventAggregator; constructor(httpClient: HttpClient, appState: UIApplication, eventAggregator: EventAggregator); setBaseUrl(url: any): void; get(slug: string, basicAuth?: boolean): Promise; text(slug: string, basicAuth?: boolean): Promise; put(slug: string, obj: any, basicAuth?: boolean): Promise; post(slug: string, obj: any, basicAuth?: boolean): Promise; delete(slug: string, basicAuth?: boolean): Promise; upload(slug: string, form: HTMLFormElement, basicAuth?: boolean): Promise; reupload(slug: string, form: HTMLFormElement, basicAuth?: boolean): Promise; private __upload(method, slug, form, basicAuth?); private __getHeaders(basic?); }