/**
 * Database schema initialization and migration
 */
import type { DatabaseConnection } from './connection.js';
export declare const SCHEMA_VERSION = 1;
/**
 * SQL statements for creating tables
 */
export declare const CREATE_TABLES: {
    users: string;
    entities: string;
    memories: string;
    interactions: string;
    schema_version: string;
    api_usage_tracking: string;
};
/**
 * SQL statements for creating indexes
 * OPTIMIZED: Reduced from 23 to 11 indexes by removing redundant single-column indexes
 * and using composite indexes that cover multiple query patterns
 */
export declare const CREATE_INDEXES: {
    users: string[];
    entities: string[];
    memories: string[];
    interactions: string[];
    api_usage_tracking: string[];
};
/**
 * Full-text search virtual tables
 */
export declare const CREATE_FTS_TABLES: {
    memories_fts: string;
    entities_fts: string;
};
/**
 * FTS triggers to keep search tables in sync
 */
export declare const CREATE_FTS_TRIGGERS: {
    memories: string[];
    entities: string[];
};
/**
 * Initialize the database schema
 */
export declare function initializeSchema(db: DatabaseConnection): Promise<void>;
/**
 * Drop all tables (for testing/reset)
 */
export declare function dropAllTables(db: DatabaseConnection): Promise<void>;
//# sourceMappingURL=schema.d.ts.map