import { AdapterBase, AdapterParams, AdapterQuery, AdapterServiceOptions, PaginationOptions } from "@feathersjs/adapter-commons"; import { Id, NullableId, Paginated } from "@feathersjs/feathers"; import NeDB from "@seald-io/nedb"; export interface NeDBAdapterOptions extends AdapterServiceOptions { Model: NeDB; } export interface NeDBAdapterParams extends AdapterParams> { nedb?: { upsert: boolean; }; } export declare class NeDbAdapter, Data extends Record = Partial, ServiceParams extends NeDBAdapterParams = NeDBAdapterParams, PatchData = Partial> extends AdapterBase { constructor(options: NeDBAdapterOptions); getSelect(select: string[]): any; filterQuery(id: NullableId, params: ServiceParams): { filters: { $select: string[]; $sort: { [key: string]: 1 | -1; }; $limit: number; $skip: number; }; query: { [key: string]: any; }; }; _findOrGet(id: NullableId, params: ServiceParams): Promise | Result[]>; normalizeId(id: NullableId, data: D): D; _find(params?: ServiceParams & { paginate?: PaginationOptions; }): Promise>; _find(params?: ServiceParams & { paginate: false; }): Promise; _find(params?: ServiceParams): Promise | Result[]>; _get(id: NullableId, params?: ServiceParams): Promise; _create(data: Data, params?: ServiceParams): Promise; _create(data: Data[], params?: ServiceParams): Promise; _create(data: Data | Data[], _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; }