import { Http, RequestOptions, ConnectionBackend } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { ConfigService } from '../service/config/config.service'; export declare class WpHttp extends Http { private config; constructor(backend: ConnectionBackend, defaultOptions: RequestOptions, config: ConfigService); get(endpoint: any, args?: any): Observable; post(endpoint: any, body: any): Observable; put(endpoint: any, body: any): Observable; delete(endpoint: any): Observable; /** Get authKeys in headers for all requests */ private getOptions(); /** Serialize url endpoint and queryArgs */ private getUrl(endpoint, args?); }