import { type ClickHouseExecutor } from '@chkit/clickhouse'; import type { MigrationJournal, MigrationJournalEntry } from './migration-store.js'; export type OperationStatus = 'started' | 'completed' | 'failed'; export interface OperationState { operationIndex: number; operationKey: string; operationType: string; queryId: string; status: OperationStatus; startedAt: string; finishedAt: string | null; lastError: string; } export interface MigrationRowState { name: string; appliedAt: string; checksum: string; chkitVersion: string; migrationCompleted: boolean; operations: OperationState[]; } export interface JournalStore { readJournal(): Promise; readMigrationState(migrationName: string): Promise; writeMigrationState(state: MigrationRowState): Promise; appendEntry(entry: MigrationJournalEntry): Promise; readonly databaseMissing: boolean; } export declare function resolveJournalTableName(): string; export declare function createJournalStore(db: ClickHouseExecutor, cluster?: string): JournalStore; //# sourceMappingURL=journal-store.d.ts.map