import type { AlterTableStmt, DoStmt } from '@libpg-query/parser'; import { type SqlMigrationConstraintMetadata } from './constraint-shared.mts'; /** * Applies AT_AddConstraint / AT_ValidateConstraint commands from one ALTER TABLE to `result`. * * `trackConstraintValidation` gates NOT VALID/VALIDATE pairing bookkeeping. Callers that * parse ALTER TABLE text out of a DO body should pass false so only `foreignKeys` is filled. */ export declare function processAlterTableStmt(statement: AlterTableStmt, baseOffset: number, result: SqlMigrationConstraintMetadata, trackConstraintValidation?: boolean): void; /** Idempotent migrations wrap `ALTER TABLE ... ADD CONSTRAINT` in `DO $$ ... $$` catalog checks. */ export declare function collectDoStmtConstraints(content: string, statement: DoStmt, stmtLocation: number, result: SqlMigrationConstraintMetadata): void;