import * as Knex from 'knex'; export declare namespace CoaMysql { interface Dic { [key: string]: T; } type SafePartial = T extends {} ? Partial : any; type Query = (qb: Knex.QueryBuilder) => void; type QueryBuilder = Knex.QueryBuilder; interface Transaction extends Knex.Transaction { __isSafeTransaction?: boolean; clearCacheNsps?: any[]; } interface Pager { rows: number; last: number; page: number; ext?: any; } interface ModelOption { name: string; scheme: T; title?: string; key?: string; prefix?: string; system?: string; increment?: string; pick: string[]; unpick?: string[]; caches?: { index?: string[]; count?: string[]; }; } interface Config { host: string; port: number; user: string; password: string; charset: string; databases: { [name: string]: { database: string; ms: number; }; }; debug: boolean; trace: boolean; pool?: { min: number; max: number; }; } }