import type { MigrationEntry } from "../db/migrations.js"; export declare const CHAT_THREADS_MIGRATIONS_TABLE = "_chat_threads_migrations"; export { CHAT_THREAD_SCHEMA_MIGRATIONS, CHAT_THREAD_SCHEMA_MIGRATIONS_TABLE, } from "./schema-migrations.js"; export declare const CHAT_THREADS_REPAIR_MESSAGE_COUNTS_MIGRATION = "chat-threads-repair-legacy-message-counts"; export declare const CHAT_THREADS_MIGRATIONS: MigrationEntry[]; /** * Apply data migrations only in a long-lived process. A serverless cold start * must never launch the legacy blob scan: concurrent isolates would all race * the same repair and exhaust the shared database even if route readiness does * not await it. Operators can run the app in a long-lived maintenance process * against the target database to apply the name-tracked repair once. */ export declare function runChatThreadDataMigrations(nitroApp: unknown): Promise<"applied" | "skipped-serverless">;