import { AdapterBase, AdapterServiceOptions, PaginationOptions, AdapterParams } from '@feathersjs/adapter-commons'; import { NullableId, Id, Params, Paginated } from '@feathersjs/feathers'; export interface MemoryServiceStore { [key: string]: T; } export interface MemoryServiceOptions extends AdapterServiceOptions { store?: MemoryServiceStore; startId?: number; matcher?: (query: any) => any; sorter?: (sort: any) => any; } export declare class MemoryAdapter, ServiceParams extends Params = Params, PatchData = Partial> extends AdapterBase> { store: MemoryServiceStore; _uId: number; constructor(options?: MemoryServiceOptions); getEntries(_params?: ServiceParams): Promise; getQuery(params: ServiceParams): { query: { [key: string]: any; }; filters: { $skip: any; $sort: any; $limit: any; $select: any; }; }; _find(_params?: ServiceParams & { paginate?: PaginationOptions; }): Promise>; _find(_params?: ServiceParams & { paginate: false; }): Promise; _find(_params?: ServiceParams): Promise | Result[]>; _get(id: Id, params?: ServiceParams): Promise; _create(data: Partial, params?: ServiceParams): Promise; _create(data: Partial[], params?: ServiceParams): Promise; _create(data: Partial | Partial[], _params?: ServiceParams): Promise; _update(id: Id, data: Data, params?: ServiceParams): Promise; _patch(id: null, data: PatchData | Partial, params?: ServiceParams): Promise; _patch(id: Id, data: PatchData | Partial, params?: ServiceParams): Promise; _patch(id: NullableId, data: PatchData | Partial, _params?: ServiceParams): Promise; _remove(id: null, params?: ServiceParams): Promise; _remove(id: Id, params?: ServiceParams): Promise; _remove(id: NullableId, _params?: ServiceParams): Promise; } export declare class MemoryService, ServiceParams extends AdapterParams = AdapterParams, PatchData = Partial> extends MemoryAdapter { find(params?: ServiceParams & { paginate?: PaginationOptions; }): Promise>; find(params?: ServiceParams & { paginate: false; }): Promise; find(params?: ServiceParams): Promise | Result[]>; get(id: Id, params?: ServiceParams): Promise; create(data: Data, params?: ServiceParams): Promise; create(data: Data[], params?: ServiceParams): Promise; update(id: Id, data: Data, params?: ServiceParams): Promise; patch(id: Id, data: PatchData, params?: ServiceParams): Promise; patch(id: null, data: PatchData, params?: ServiceParams): Promise; remove(id: Id, params?: ServiceParams): Promise; remove(id: null, params?: ServiceParams): Promise; } export declare function memory, P extends Params = Params>(options?: Partial>): MemoryService>;