/**
 * History Importer - Import Claude Code history into memory store
 * Supports global history.jsonl and project session JSONL files
 *
 * Usage:
 * ```typescript
 * const importer = new HistoryImporter('path/to/database.db');
 *
 * // Import global history (incremental)
 * const globalResult = await importer.importGlobalHistory();
 * console.log(`Imported ${globalResult.imported} entries`);
 *
 * // Import all sessions for a project
 * const projectResult = await importer.importProjectSessions('D--Claude-dms3');
 * console.log(`Imported ${projectResult.imported} messages from project sessions`);
 *
 * // Import specific session
 * const sessionResult = await importer.importSession('path/to/session.jsonl');
 *
 * // Get import status
 * const status = importer.getImportStatus();
 * console.log(`Total imported: ${status.totalImported}`);
 *
 * importer.close();
 * ```
 */
export interface ImportResult {
    imported: number;
    skipped: number;
    errors: number;
}
export interface ImportStatus {
    lastGlobalImport?: string;
    lastSessionImport?: string;
    totalImported: number;
    sessions: Map<string, {
        imported: number;
        lastUpdate: string;
    }>;
}
/**
 * History Importer for Claude Code
 */
export declare class HistoryImporter {
    private db;
    private status;
    constructor(dbPath: string);
    /**
     * Initialize database schema for conversation history
     * NOTE: Schema aligned with MemoryStore for seamless importing
     */
    private initSchema;
    /**
     * Import from global history.jsonl (incremental)
     */
    importGlobalHistory(historyPath?: string): Promise<ImportResult>;
    /**
     * Import full session from projects folder
     */
    importSession(sessionFilePath: string): Promise<ImportResult>;
    /**
     * Scan and import all sessions for a project
     */
    importProjectSessions(projectName: string): Promise<ImportResult>;
    /**
     * Get import status
     */
    getImportStatus(): ImportStatus;
    /**
     * Insert global history batch
     */
    private insertGlobalHistoryBatch;
    /**
     * Insert session messages
     */
    private insertSessionMessages;
    /**
     * Extract text content from message content
     */
    private extractTextContent;
    /**
     * Extract tool calls from content blocks
     */
    private extractToolCalls;
    /**
     * Generate SHA256 hash for deduplication
     */
    private generateHash;
    /**
     * Get last import time for a source
     */
    private getLastImportTime;
    /**
     * Update last import time
     */
    private updateLastImportTime;
    /**
     * Close database connection
     */
    close(): void;
}
//# sourceMappingURL=history-importer.d.ts.map