type ClassName = any; export declare class InstanceManager { private instanceMap; constructor(); /** * Clear instances by socket id. * @param socketId The socket id of each connection. */ clearAllInstances(socketId: number): void; /** * Clear instance by socket id and instanceId. * @param socketId The socket id of each connection. * @param instanceId The instance id to be cleared. */ clearInstance(socketId: number, instanceId: string): void; /** * Set instance by socket id and instance id. * @param socketId The socket id of each connection. * @param instanceId The id of instance. * @param intance Instance. */ setInstance(socketId: number, instanceId: string, intance: ClassName): void; /** * Get instance by socket id and instance id. * @param socketId The socket id of each connection. * @param instanceId The id of instance. * @returns Instance. */ getInstance(socketId: number, instanceId: string): ClassName; } export {};