import type { Entity, Observation, Relation, MemoryGraphData } from "./types.js";
export declare class MemoryGraph {
    private entities;
    private relations;
    private nextId;
    private genId;
    private now;
    getEntities(): Entity[];
    getRelations(): Relation[];
    getEntity(id: string): Entity | null;
    addEntity(name: string, type: string, source: string): Entity;
    addObservation(entityId: string, content: string): Observation;
    expireObservation(obsId: string): void;
    addRelation(fromId: string, toId: string, type: string, source: string): Relation;
    expireRelation(relId: string): void;
    findEntityByName(name: string): Entity | null;
    findEntitiesByType(type: string): Entity[];
    getCurrentObservations(entityId: string): Observation[];
    getRelationsFrom(entityId: string): Relation[];
    getRelationsTo(entityId: string): Relation[];
    toCompactIndex(): string;
    toJSON(): MemoryGraphData;
    static fromJSON(data: MemoryGraphData): MemoryGraph;
}
