import { StoredManagerState } from "../types.js"; import { IClientStorageAdapter } from "./IClientStorageAdapter.js"; /** * In-memory client storage adapter. * Useful for keeping state between socket reconnections in Node.js or short-lived sessions. */ export declare class MemoryStorageAdapter implements IClientStorageAdapter { private store; /** * Saves complete manager state into in-memory store. * Clones the input state to prevent mutations from modifying the stored snapshot. * * @param className - The name identifier of the manager class. * @param state - Complete snapshot of the manager state. */ saveManagerState(className: string, state: StoredManagerState): Promise; /** * Retrieves cloned manager state snapshot from in-memory store. * * @param className - The name identifier of the manager class. * @returns The stored snapshot or null if not found. */ loadManagerState(className: string): Promise | null>; /** * Removes saved in-memory state for a specific manager class. * * @param className - The name identifier of the manager class. */ clearManagerState(className: string): Promise; /** * Purges all saved manager states across all classes from the in-memory store. */ clearAll(): Promise; }