import { Injector } from '@angular/core';
import { Headers, Http, RequestOptions } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { OAuthService } from 'angular-oauth2-oidc';
import { Observable } from 'rxjs/Observable';
export declare class ServiceOptions {
    appCode: string;
    itemType: string;
}
export declare class BaseService {
    options: ServiceOptions;
    http: Http;
    oAuthService: OAuthService;
    appServiceUrl: string;
    headers: Headers;
    requestOptions: RequestOptions;
    fileHeaders: Headers;
    fileRequestOptions: RequestOptions;
    constructor(injector: Injector, options: ServiceOptions);
    handleError(error: any): Promise<any>;
    post(url: string, data: any): Promise<any>;
    postObservable(url: string, data: any): Observable<any>;
}
