import { Connection } from 'mongoose'; export declare class MemCacheConnections { /** * k is ${domain} or ${domain}_date */ getConnectionMaps(): { [k: string]: Connection | string; }; setConnection(domain: string, conn: Connection, force?: boolean): void; getConnection(domain: string): Connection | null; /** * Checks if a connection is ready (connected state) * @param domain - Domain identifier * @returns true if connection exists and is ready, false otherwise */ isConnectionReady(domain: string): boolean; /** * Gets connection and verifies it's ready * @param domain - Domain identifier * @returns Connection if ready, null otherwise */ getReadyConnection(domain: string): Connection | null; /** * Validates connection is truly ready (not just readyState check) * This is a lightweight check - for full validation use ensureConnectionReady from connectionHelpers * @param domain - Domain identifier * @returns true if connection exists, is ready, and has db available */ isValidConnection(domain: string): boolean; closeConnection(domain: string): Promise; removeConnection(domain: string): void; /** * Gets all active connections * @returns Array of all connection objects */ getAllConnections(): Connection[]; }