export declare class Request { static xhr(options: XHROptions, onSuccess?: (res) => T, onError?: (err) => any, onComplete?: Function): any; static get(url: string, onSuccess?: (res) => T, onError?: (err) => any, onComplete?: Function): void; static post(url: string, data: any, onSuccess?: (res) => T, onError?: (err) => any, onComplete?: Function): void; static getJson(url: string, onSuccess?: (res) => T, onError?: (err) => any, onComplete?: Function): void; static postJson(url: string, data: any, onSuccess?: (res) => T, onError?: (err) => any, onComplete?: Function): void; } export declare type XHROptions = { url: string; method?: string; data?: string | {}; headers?: { [key: string]: string; }; withCredentials?: boolean; contentType?: string; responseType?: string; timeout?: number; user?: string; password?: string; };