/**
 * Database Migration Operations
 *
 * Contains the main migration functions: initializeDatabase, migrateToLatest,
 * checkSchemaVersion, and getCurrentSchemaVersion.
 *
 * @module migrations/operations
 */
import type Database from 'better-sqlite3';
/**
 * Check the current schema version of the database
 * @param db - Database instance
 * @returns Current schema version, or 0 if not initialized
 */
export declare function checkSchemaVersion(db: Database.Database): number;
/**
 * Get the current schema version constant
 * @returns The current schema version number
 */
export declare function getCurrentSchemaVersion(): number;
/**
 * Initialize the database with all tables, indexes, and configuration
 *
 * This function is idempotent - safe to call multiple times.
 * Creates tables only if they don't exist.
 *
 * @param db - Database instance from better-sqlite3
 * @throws MigrationError if any operation fails
 */
export declare function initializeDatabase(db: Database.Database): void;
/**
 * Migrate database to the latest schema version
 *
 * Checks current version and applies any necessary migrations.
 *
 * @param db - Database instance from better-sqlite3
 * @throws MigrationError if migration fails
 */
export declare function migrateToLatest(db: Database.Database): void;
//# sourceMappingURL=operations.d.ts.map