import { Id, NullableId, Paginated, Query } from '@feathersjs/feathers'; import { AdapterBase, PaginationOptions } from '@feathersjs/adapter-commons'; import { Knex } from 'knex'; import { KnexAdapterOptions, KnexAdapterParams } from './declarations'; export declare class KnexAdapter, ServiceParams extends KnexAdapterParams = KnexAdapterParams, PatchData = Partial> extends AdapterBase { schema?: string; constructor(options: KnexAdapterOptions); get fullName(): string; get Model(): Knex; getModel(params?: ServiceParams): Knex; db(params?: ServiceParams): Knex.QueryBuilder; knexify(knexQuery: Knex.QueryBuilder, query?: Query, parentKey?: string): Knex.QueryBuilder; createQuery(params?: ServiceParams): Knex.QueryBuilder; filterQuery(params: ServiceParams): { paginate: import("@feathersjs/feathers").PaginationParams; filters: { $select: string[]; $sort: { [key: string]: 1 | -1; }; $limit: number; $skip: number; }; query: { [key: string]: any; }; }; _find(params?: ServiceParams & { paginate?: PaginationOptions; }): Promise>; _find(params?: ServiceParams & { paginate: false; }): Promise; _find(params?: ServiceParams): Promise | Result[]>; _findOrGet(id: NullableId, params?: ServiceParams): Promise; _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; _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; _update(id: Id, _data: Data, params?: ServiceParams): Promise; _remove(id: null, params?: ServiceParams): Promise; _remove(id: Id, params?: ServiceParams): Promise; _remove(id: NullableId, _params?: ServiceParams): Promise; }