import { Knex } from "knex"; interface TableSchema { columns: Record; constraints: Constraint[]; indexes: Index[]; } interface Constraint { name: string; type: ConstraintType; definition: string; } declare enum ConstraintType { Check = "CHECK", Exclusion = "EXCLUSION", Foreign = "FOREIGN", Primary = "PRIMARY", Trigger = "TRIGGER", Unique = "UNIQUE" } interface Index { name: string; definition: string; } export declare class KnexClient { knex: Knex; constructor(config: Knex.Config); getTableNames(): Promise>; getSchema(): Promise>; destroy(): Promise; count(tableName: string): Promise; private getColumnInfo; private getConstraints; private getIndexes; private parseConstraintType; } export {}; //# sourceMappingURL=KnexClient.d.ts.map