/**
 * Admin API routes for database migration management.
 *
 * Provides endpoints to run pending migrations and check migration status
 * through the admin API. Uses advisory locking for concurrency safety
 * across multiple orchestrator instances.
 *
 * All routes are mounted under /api/v1/admin/db and protected by
 * the admin auth middleware in admin.ts.
 */
import { Hono } from 'hono';
import type { Kysely } from 'kysely';
import type pg from 'pg';
import type { Role } from '../secrets/rbac.js';
interface DbRouteDeps {
    db: Kysely<any>;
    pool: pg.Pool;
}
type AdminDbEnv = {
    Variables: {
        role: Role;
        userId: string;
        routingKey: string | null;
    };
};
export declare function createDbRoutes(deps: DbRouteDeps): Hono<AdminDbEnv>;
export {};
//# sourceMappingURL=admin-db.d.ts.map