/**
 * Migration: 005 - Relation Engine Schema
 * Description: Create memory_relation and relation_type_registry tables for semantic relation engine
 * Version: 5.0
 * Date: 2025-01-XX
 */
import type Database from 'better-sqlite3';
import type { Migration } from '../types.js';
/**
 * Relation Engine Schema Migration
 *
 * This migration:
 * 1. Creates memory_relation table for storing semantic relations between memories
 * 2. Creates relation_type_registry table for managing relation types
 * 3. Creates indexes for performance optimization
 * 4. Inserts initial relation types (CAUSES, DEPENDS_ON, FOLLOWS, CONTRASTS_WITH, REFERENCES, BELONGS_TO)
 * 5. Migrates existing memory_link data to memory_relation
 */
export declare class RelationEngineSchemaMigration implements Migration {
    version: string;
    name: string;
    description: string;
    /**
     * Load SQL file content
     */
    private loadSQLFile;
    /**
     * Execute SQL script
     * Removes transaction commands (BEGIN TRANSACTION, COMMIT) as MigrationRunner manages transactions
     */
    private executeSQL;
    /**
     * Check if table exists
     */
    private tableExists;
    /**
     * Check if index exists
     */
    private indexExists;
    /**
     * Check if column exists in table
     */
    private columnExists;
    /**
     * Map old memory_link relation_type to new memory_relation relation_type
     */
    private mapRelationType;
    /**
     * Validate before migration
     */
    validateBefore(db: Database.Database): Promise<void>;
    /**
     * Execute migration (Up)
     */
    up(db: Database.Database): Promise<void>;
    /**
     * Rollback migration (Down)
     */
    down(db: Database.Database): Promise<void>;
    /**
     * Validate after migration
     */
    validateAfter(db: Database.Database): Promise<void>;
}
//# sourceMappingURL=005-relation-engine-schema.d.ts.map