import type { DB } from "../Prostgles"; import type { ColumnMinimalInfo } from "./getColumnSQLDefinitionQuery"; import type { ConstraintDef } from "./getConstraintDefinitionQueries"; import { type PGConstraint } from "./fetchTableConstraints"; import type pgPromise from "pg-promise"; type Args = { db: DB; columnDefs: string[]; tableName: string; constraintDefs?: ConstraintDef[]; }; /** * Given a table name, column definitions and constraint definitions, * returns resulting column definitions and constraints of the table */ export declare const getFutureTableSchema: ({ columnDefs, tableName, constraintDefs, db, }: Args) => Promise<{ constraints: PGConstraint[]; cols: ColumnMinimalInfo[]; }>; export declare const executeSqlWithRollback: (db: DB, txHandler: (t: pgPromise.ITask<{}>) => Promise) => Promise; export {}; //# sourceMappingURL=getFutureTableSchema.d.ts.map