import { IRequestOptions, IResponse } from '@datx/jsonapi'; import { IType, PureModel, IModelConstructor, PureCollection } from '@datx/core'; import { Observable } from 'rxjs'; import { IJsonapiModel } from './IJsonapiModel'; import { Response } from '../Response'; export interface IJsonapiCollection extends PureCollection { sync(body?: IResponse): T | Array | null; getOne(type: IType | IModelConstructor, id: string, options?: IRequestOptions): Observable>; getMany(type: IType | IModelConstructor, options?: IRequestOptions): Observable>; request(url: string, method?: string, data?: object, options?: IRequestOptions): Observable>; removeOne(type: IType | typeof PureModel, id: string, options?: boolean | IRequestOptions): Observable; removeOne(model: PureModel, options?: boolean | IRequestOptions): Observable; }