export type SqlCreateTableColumnConstraint = { contype: string | null; }; export type SqlCreateTableColumn = { name: string; location: number | null; constraints: SqlCreateTableColumnConstraint[]; isPrimaryKey: boolean; defaultFunction: string | null; /** Function name of a CONSTR_GENERATED expression (e.g. `uuid_extract_timestamp`), null if not generated or unrecognized. */ generatedFunction: string | null; /** Lowercased argument column names of a CONSTR_GENERATED expression's function call (e.g. `['id']`). */ generatedFunctionArgColumns: string[]; }; export type SqlCreateTableMetadata = { tableName: string; columns: SqlCreateTableColumn[]; }; /** * A column is a primary key via either the inline `col TYPE PRIMARY KEY` constraint * (nested inside its ColumnDef) or the table-level `PRIMARY KEY (col)` constraint * (a bare `Constraint` sibling in tableElts, referencing the column by name in `keys`). * Both forms are checked so table-level-PK migrations aren't silently mis-detected. */ export declare function extractCreateTableMetadata(content: string): SqlCreateTableMetadata[];