import { EventEmitter } from '@angular/core' ; import { State } from '@progress/kendo-data-query' ; import { BehaviorSubject } from 'rxjs' ; import { DataServiceEvent } from './data-service.event' ; import { ModelDataResult } from './model-data-result' ; export interface DataServiceInterface < T > { errors : BehaviorSubject < Error > ; events : EventEmitter < DataServiceEvent > ; fetchedData ( ) : ModelDataResult < T > ; reset ( ) : void ; dataChanges ( ) : BehaviorSubject < ModelDataResult < T > > ; read ( state ) : void ; create ( item ) : void ; update ( item ) : void ; remove ( item ) : void ; batch ( deletedItems , createdItems , updatedItems ) : void ; createModel ( ) : T ; }