/** * History Tracker Module * Manages migration history tracking in database */ import type { Client } from 'pg'; import type { IMigrationRecord } from '../../types/apply'; export declare class HistoryTracker { private readonly tableName; /** * Ensure the migration history table exists and is upgraded for migration_id + immutability. */ ensureHistoryTable(client: Client): Promise; private dropLegacyChecksumUnique; private createPartialUniqueIndex; private backfillMigrationIds; private extractMigrationIdFromPath; /** * Create indexes on migration history table */ private createIndexes; /** * Decide whether to apply, skip, or fail (immutability violation). */ getApplyDecision(client: Client, migrationId: string, checksum: string, enforceImmutability: boolean): Promise<'apply' | 'skip'>; /** * Record a migration in history */ recordMigration(client: Client, record: Omit): Promise; /** * Get all applied migrations */ getAppliedMigrations(client: Client): Promise; /** * Get migration status for a specific migration id */ getMigrationStatus(client: Client, migrationId: string): Promise; } //# sourceMappingURL=historyTracker.d.ts.map