import { Service } from '@feathersjs/feathers'; import { MakeServicePluginOptions } from './types'; export default function makeServiceModule(service: Service, options: MakeServicePluginOptions): { namespaced: boolean; state: import("./service-module.state").ServiceStateExclusiveDefaults & Partial; getters: { list(state: any): any; find: (state: any) => (params: any) => { total: number; limit: any; skip: any; data: any[]; }; get: ({ keyedById, tempsById, idField, tempIdField }: { keyedById: any; tempsById: any; idField: any; tempIdField: any; }) => (id: any, params?: {}) => any; getCopyById: (state: any) => (id: any) => any; }; mutations: { mergeInstance: (state: any, item: any) => void; merge: (state: any, { dest, source }: { dest: any; source: any; }) => void; addItem(state: any, item: any): void; addItems: (state: any, items: any) => void; updateItem(state: any, item: any): void; updateItems(state: any, items: any): void; updateTemp(state: any, { id, tempId }: { id: any; tempId: any; }): void; replaceItemWithTemp(state: any, { item, temp }: { item: any; temp: any; }): void; remove__isTemp(state: any, temp: any): void; removeItem(state: any, item: any): void; removeTemps(state: any, tempIds: any): void; removeItems(state: any, items: any): void; clearAll(state: any): void; createCopy(state: any, id: any): void; resetCopy(state: any, id: any): void; commitCopy(state: any, id: any): void; clearCopy(state: any, id: any): void; updatePaginationForQuery(state: any, { qid, response, query }: { qid: any; response: any; query?: {}; }): void; setPending(state: any, method: string): void; unsetPending(state: any, method: string): void; setError(state: any, payload: { method: string; error: Error; }): void; clearError(state: any, method: string): void; }; actions: { handleFindResponse({ state, commit, dispatch }: { state: any; commit: any; dispatch: any; }, { params, response }: { params: any; response: any; }): Promise; handleFindError({ commit }: { commit: any; }, { params, error }: { params: any; error: any; }): Promise; afterFind({}: {}, response: any): Promise; addOrUpdateList({ state, commit }: { state: any; commit: any; }, response: any): Promise; addOrUpdate({ state, commit }: { state: any; commit: any; }, item: any): Promise; }; };