import { Type } from '@nestjs/common'; import { ModuleMetadata } from '@nestjs/common/interfaces'; import * as knex from 'knex'; import { Model } from 'objection'; export declare type Knex = knex.Knex; export declare type Connection = knex.Knex; export interface ObjectionModuleOptions { Model?: typeof Model; config: knex.Knex.Config; } export interface ObjectionModuleOptionsFactory { createObjectionModuleOptions(): Promise | ObjectionModuleOptions; } export interface ObjectionModuleAsyncOptions extends Pick { inject?: any[]; useClass?: Type; useExisting?: Type; useFactory?: (...args: any[]) => Promise | ObjectionModuleOptions; }