import { type Kysely } from 'kysely';
/**
 * Add `check_run_tracking` table for HA-safe check-run state persistence.
 *
 * The `CommitStatusReporter` previously held all of its check-run bookkeeping
 * in per-process `Map`s. Under HA (Raft leader switch / coord crash) those
 * maps reset to empty on the replacement coord, leaving GitHub check runs
 * stuck in `queued` forever.
 *
 * Single composite-keyed table per (provider, owner, repo, sha, check_name):
 *
 *   - `check_run_id`            replaces in-memory `checkRunIds`.
 *   - `build_creation_state`    replaces `pendingBuildCreations` Promise map.
 *   - `step_progress_json`      replaces `stepProgress` array map.
 *   - `in_progress_sent_at`     replaces `inProgressSent` boolean map.
 *   - `run_id`                  indexed; replaces `runIdToKeys` reverse map.
 *
 * Progress-timer debounce state (the `progressTimers` Map) is NOT persisted —
 * timers are recreated on demand when an update arrives and the row's
 * `updated_at` is older than the debounce window.
 *
 * Idempotent: a re-run on a DB that already has the table is a no-op.
 */
export declare function up(db: Kysely<unknown>): Promise<void>;
export declare function down(db: Kysely<unknown>): Promise<void>;
//# sourceMappingURL=021_check_run_tracking.d.ts.map