import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { IReadOnlyService } from './ReadOnlyService'; import { HttpServiceBase } from './HttpService'; export interface IService extends IReadOnlyService { postItem(item: TNew): Observable; putItem(id: string, item: TIn): Observable; deleteItem(id: string): Observable; } export declare abstract class ServiceBase extends HttpServiceBase implements IService { private readonly _readOnlyService; constructor(http: Http, baseUrl: string, readOnlyService: IReadOnlyService); postItem(item: TNew): Observable; putItem(id: string, item: TIn): Observable; deleteItem(id: string): Observable; protected postItemInternal(item: TNew, hostUrl: string): Observable; protected putItemInternal(id: string, item: TIn, hostUrl: string): Observable; protected deleteItemInternal(id: string, hostUrl: string): Observable; getAllItems(extra?: string): Observable; getItemById(id: string): Observable; getItemsById(ids: string[]): Observable; }