import { type AppliedMigration, type Migration, type MigrationResult } from "../generated/storage-kit/index.js";
import type { TypedQueryClient } from "../generated/storage-kit/query.js";
export declare const MIGRATIONS_DIR_ENV = "PROJECTS_MIGRATIONS_DIR";
export interface AppliedMigrationCompatibility {
    readonly id: string;
    readonly checksum: string;
}
/**
 * Applied-only ledger rows from the pre-rename production schema.
 *
 * This is deliberately not an executable migration: fresh databases must not
 * record it, and no legacy SQL is reconstructed or replayed. The checksum was
 * emitted by deploy run 31171363160 from the production migration ledger.
 */
export declare const PROJECTS_APPLIED_MIGRATION_COMPATIBILITY: readonly [{
    readonly id: "projects:0002_tenants";
    readonly checksum: "sha256:0a93c3c87fa9159545f270a053835f28e3b0eed5d8d13ec886c3aa549287bcd2";
}];
/** Resolve the on-disk migrations directory across dev, dist, and Docker layouts. */
export declare function resolveMigrationsDir(): string;
/** Load the ordered baseline SQL migrations from disk plus the api-keys migrations. */
export declare function loadMigrations(): Migration[];
/**
 * Add checksum evidence to the storage kit's drift/downgrade guard without
 * accepting unknown migrations or changing the ledger.
 */
export declare function assertMigrationCompatibility(migrations: readonly Migration[], applied: readonly AppliedMigration[], compatibility?: readonly AppliedMigrationCompatibility[]): void;
export declare function runMigrationLedgerWithCompatibility(client: TypedQueryClient, migrations: readonly Migration[], compatibility: readonly AppliedMigrationCompatibility[], opts?: {
    dryRun?: boolean;
}): Promise<MigrationResult>;
/** Apply all pending migrations against the given PostgreSQL client. */
export declare function runProjectsMigrations(client: TypedQueryClient, opts?: {
    dryRun?: boolean;
}): Promise<MigrationResult>;
//# sourceMappingURL=migrations.d.ts.map