import { PromptMemory } from "promptrix"; /** * Forks an existing memory. * @remarks * A memory fork is a memory that is a copy of another memory, but can be modified without * affecting the original memory. */ export declare class MemoryFork implements PromptMemory { private readonly _fork; private readonly _memory; /** * Creates a new `MemoryFork` instance. * @param memory Memory to fork. */ constructor(memory: PromptMemory); /** * Returns whether the memory contains the specified key. * @param key Name of the key to check. * @returns True if the memory contains the specified key, false otherwise. */ has(key: string): boolean; /** * Gets the value of the specified key. * @param key Key to get the value of. * @returns Value of the key or undefined if missing. */ get(key: string): TValue; /** * Sets the value of the specified key. * @param key Key to set the value of. * @param value Value to set. */ set(key: string, value: TValue): void; /** * Deletes the specified key. * @param key Key to delete. */ delete(key: string): void; /** * Clears the memory. */ clear(): void; } //# sourceMappingURL=MemoryFork.d.ts.map