import type { DataSource } from 'typeorm'; import type { NAuthConfig } from '../../interfaces/config.interface'; import type { NAuthLogger } from '../nauth-logger'; /** * Runs nauth-toolkit migrations automatically on startup (zero consumer burden). * * @remarks * This dynamically loads the database-specific adapter package and asks it to run its * own adapter-owned migrations into the provided `DataSource`. * * The adapter serializes the run behind a database-level lock (Postgres advisory lock / * MySQL named lock), so multiple instances booting in parallel — ECS tasks, Kubernetes * pods — cannot race on the same schema. See `config.migrations`. * * Set `config.migrations.autoRun = false` to skip this entirely and apply migrations * out-of-band (for example from a one-off release task). */ export declare function runNAuthMigrationsOnStartup(config: NAuthConfig, dataSource: DataSource, logger: NAuthLogger): Promise; //# sourceMappingURL=run-nauth-migrations.d.ts.map