/**
 * Migration Utilities
 *
 * Handles migration from SQLite-based persistence to file-based persistence.
 * Automatically detects legacy SQLite databases and migrates conversation states
 * to the new file-based structure.
 */
/**
 * Check if a legacy SQLite database exists
 * Checks both conversation.sqlite and conversation-state.sqlite (legacy names)
 */
export declare function detectLegacyDatabase(basePath: string): boolean;
/**
 * Check if file-based storage already exists
 */
export declare function fileStorageExists(basePath: string): Promise<boolean>;
/**
 * Migrate from SQLite to file-based storage
 *
 * @param basePath - Path to the SQLite database (e.g., .vibe/conversation.sqlite)
 * @returns Migration result with statistics
 */
export declare function migrateSQLiteToFiles(basePath: string): Promise<{
    success: boolean;
    migratedCount: number;
    backupPath: string;
    message: string;
}>;
/**
 * Check if migration is needed and perform it
 * Called automatically during FileStorage initialization
 *
 * @param basePath - Path to the SQLite database location
 * @returns True if migration was performed or not needed, false if migration failed
 */
export declare function autoMigrateIfNeeded(basePath: string): Promise<boolean>;
