import { IHttpHeaders, IHttpResponse, HttpMethod, IHttpEvent } from './types'; export * from './types'; export declare const events$: import("rxjs").Observable; export declare function request(method: HttpMethod, url: string, data?: any, headers?: IHttpHeaders): Promise>; export declare function headers(headers: IHttpHeaders): { get: (url: string) => Promise>; post: (url: string, data: any) => Promise>; }; export declare const get: (url: string) => Promise>; export declare const post: (url: string, data: any) => Promise>;