import { IAdapter } from '../../src/lib/adapter'; export declare class FakeMemoryAdapter implements IAdapter { protected datasource: any; data: { [index: number]: T; }; constructor(datasource: any); protected _findMatchKeys(query: any): string[]; /** * get number of matches for the query */ count(query: any): PromiseLike; /** * find out all the matched records */ find(query: any, option?: any): PromiseLike; /** * find the first matched record */ findOne(query: any, option?: any): PromiseLike; /** * update all the matched records */ update(query: any, updates: any): PromiseLike; /** * remove all the matched records */ remove(query: any): PromiseLike; /** * insert a record */ insert(record: T): PromiseLike; get(id: any): PromiseLike; }