import { BaseRequestModelInterface } from '../requests'; import { Store } from './store'; import { Keys } from './entities'; import { Id } from '../types'; export declare class BaseModel { _requestModel: BaseRequestModelInterface; _store: Store; _storeKey: Keys; private _userPromise; constructor(requestModel: BaseRequestModelInterface, storeKey: Keys, store: Store); create(item: Omit): Promise; private _getUser; getId(potentialId: Id): Promise; getLocalById(id: Id): Promise; getLocalFilter(fn: (item: any, index: number, array: any[]) => boolean): DataType[]; getLocalAll(): DataType[]; getById(id: Id): Promise; getAll(filter?: any): Promise; update(id: Id, item: Partial): Promise; replace(id: Id, item: DataType): Promise; del(id: Id): Promise; }