import { OrmSearch, PrimaryKeyType } from 'functional-models';
import { SimpleSqlObject, SimpleSqlOrmSearchResult } from '../types';
export declare const ormQueryToKnex: (knex: any, table: string, ormSearch: OrmSearch) => Promise<SimpleSqlOrmSearchResult>;
export declare const knexWrapper: (knex: any) => {
    updateOrCreate: (table: string, idKey: string, data: SimpleSqlObject) => any;
    getByPrimaryKey: (table: string, key: string, id: PrimaryKeyType) => Promise<Readonly<{
        [key: string]: import("../types").SimpleSqlValue;
    }>>;
};
