import { PaginationOptions } from '@feathersjs/adapter-commons'; import { Paginated, ServiceMethods, Id, NullableId, Params } from '@feathersjs/feathers'; import { KnexAdapter } from './adapter'; import { KnexAdapterParams } from './declarations'; export * from './declarations'; export * from './adapter'; export * from './error-handler'; export * as transaction from './hooks'; export declare class KnexService, ServiceParams extends Params = KnexAdapterParams, PatchData = Partial> extends KnexAdapter implements ServiceMethods, Data, ServiceParams, PatchData> { 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; create(data: 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; patch(id: NullableId, data: PatchData, params?: ServiceParams): Promise; remove(id: Id, params?: ServiceParams): Promise; remove(id: null, params?: ServiceParams): Promise; remove(id: NullableId, params?: ServiceParams): Promise; }