import type { Dialect } from '@enbox/dwn-sql-store'; import type { ServerMigrationFactory } from './migrations/index.js'; import type { Kysely } from 'kysely'; /** * Runs all pending DWN server migrations against the given database. * * Uses Kysely's native {@link Migrator} with a separate migration table * (`dwn_server_migration`) to avoid collisions with the DWN store * migrations that use the default `kysely_migration` table. * * Call this once during server startup, before creating admin stores, * registration stores, or the TTL cache. * * @param db - An open Kysely instance connected to the target database. * @param dialect - The dialect for the target database. Passed to each * migration factory so it can use dialect-specific DDL helpers. * @param migrations - Optional custom migration list; defaults to the * built-in {@link allServerMigrations}. * @returns The names of newly applied migrations (empty if already up-to-date). * @throws If any migration fails. */ export declare function runServerMigrations(db: Kysely, dialect: Dialect, migrations?: ReadonlyArray): Promise; //# sourceMappingURL=server-migration-runner.d.ts.map