/** Ordered eval-denorm ClickHouse DDL (idempotent CREATE / ADD COLUMN / INDEX). */
export declare const EVAL_DENORM_CH_MIGRATION_FILES: readonly ["001_eval_result_components.sql", "002_eval_results_analytics.sql", "003_otel_traces_trace_id_index.sql", "004_add_trace_ids_columns.sql"];
/**
 * Fresh dev install: base tables + indexes only (trace_ids already in 001/002).
 * Skips incremental 004 ALTERs after a full DROP/CREATE.
 */
export declare const EVAL_DENORM_CH_DEV_RESET_MIGRATION_FILES: readonly ["001_eval_result_components.sql", "002_eval_results_analytics.sql", "003_otel_traces_trace_id_index.sql"];
export declare const EVAL_DENORM_CH_BACKFILL_CHECKPOINT_FILES: readonly [".eval-denorm-backfill-ch.checkpoint.json", ".eval-denorm-backfill.checkpoint.json"];
export type RunClickhouseEvalDenormMigrationsOptions = {
    migrationsDir?: string;
    /** Run only these filenames (must be in EVAL_DENORM_CH_MIGRATION_FILES). */
    only?: string[];
    /** Skip otel_traces index migration (003). */
    skipOtelIndex?: boolean;
    dryRun?: boolean;
    /**
     * Development default: DROP denorm tables + ledger, recreate from 001–003, clear CH backfill checkpoint.
     * Set false or pass --incremental to use ledger-based incremental migrations.
     */
    devReset?: boolean;
    /** Force ledger-based migrations even in development. */
    incremental?: boolean;
    /** When devReset runs, remove CH backfill checkpoint files (default true). */
    clearBackfillCheckpoint?: boolean;
};
export type ClickhouseEvalDenormMigrationResult = {
    mode: 'dev-reset' | 'incremental';
    applied: string[];
    skipped: string[];
    pending: string[];
    droppedTables?: string[];
    checkpointsCleared?: string[];
};
/** Whether migrate should DROP + CREATE instead of ledger iteration. */
export declare function shouldUseClickhouseEvalDenormDevReset(options?: RunClickhouseEvalDenormMigrationsOptions): boolean;
export declare function clearEvalDenormChBackfillCheckpoints(cwd?: string): string[];
export declare function dropEvalDenormClickhouseTables(): Promise<string[]>;
/**
 * ClickHouse-only DDL pipeline for eval denorm tables (separate from Postgres `db:migrate`).
 *
 * Development: DROP denorm tables + recreate (001–003), clear CH backfill checkpoint.
 * Production/staging: incremental ledger migrations (001–004).
 */
export declare function runClickhouseEvalDenormMigrations(options?: RunClickhouseEvalDenormMigrationsOptions): Promise<ClickhouseEvalDenormMigrationResult>;
//# sourceMappingURL=clickhouseEvalDenormMigrations.d.ts.map