import { ChatClient } from '../../core/chat-client.js'; import { Logger } from '../../core/logger.js'; import { Room } from '../../core/room.js'; import { RoomOptions } from '../../core/room-options.js'; /** * Reference counting manager for rooms within a ChatClientProvider. * This manages attach/release lifecycle based on reference counts. */ export declare class RoomReferenceManager { private readonly _refCounts; private readonly _client; private readonly _logger; private readonly _releaseDelayMs; private readonly _pendingReleases; constructor(client: ChatClient, logger: Logger); /** * Get the client this manager is associated with. * @returns The chat client. */ get client(): ChatClient; /** * Increment reference count for a room. Attaches on first reference. * @param roomName The name of the room. * @param options The room options. * @returns A promise that resolves to the room instance. */ addReference(roomName: string, options?: RoomOptions): Promise; /** * Decrement reference count for a room. Releases on last reference after a delay. * @param roomName The name of the room. * @param options The room options. */ removeReference(roomName: string, options?: RoomOptions): void; getReferenceCount(roomName: string, options?: RoomOptions): number; }