import type { EntityType, ExtractionResult } from './extract.js';
export declare function levenshtein(a: string, b: string): number;
export declare function resolveEntity(name: string, type: EntityType): number;
export declare function mergeEntities(keepId: number, removeId: number): void;
export declare function removeMemoryGraph(memoryId: number): {
    removedEntityLinks: number;
    removedTriples: number;
    orphanEntitiesPruned: number;
};
export declare function replaceMemoryGraph(memoryId: number, result: ExtractionResult): {
    removedEntityLinks: number;
    removedTriples: number;
    orphanEntitiesPruned: number;
};
export declare function processExtractionResult(result: ExtractionResult, memoryId: number): void;
