export type MigrationPhase = "pre" | "maintenance" | "post"; export type MigrationDeploymentMode = "rolling" | "maintenance" | "unclassified"; export type MigrationPhases = Record; /** A conservative posture classification, not a general rolling-safety proof. * Unknown/dynamic statements stay in the maintenance span rather than guessing. * TODO: relax only after forward-compatible readiness is deployed as * the OLD production binary; shipping it in the same release is not sufficient. */ export declare function ordinaryMigrationIsPostureInert(sqlText: string): boolean; export declare function migrationDeploymentMode(sqlText: string): MigrationDeploymentMode; export declare const RELEASE_DIRECTIVE: RegExp; /** Only real directive lines in the leading comment block, never SQL strings. */ export declare function migrationReleaseDirectives(sqlText: string): Set; export declare function parseMigrationPhase(value: string | undefined): MigrationPhase; /** Both CLI spellings work; an explicit flag takes precedence over the env. */ export declare function migrationPhaseFromArgs(args: readonly string[], environmentPhase: string | undefined): MigrationPhase; /** Input is the database's pending set in file order, not the whole ledger. */ export declare function partitionMigrationPhases(pending: readonly { name: string; deploymentMode: MigrationDeploymentMode; preReleaseEligible: boolean; postReleaseEligible: boolean; }[]): MigrationPhases;