/** * Redis Server Implementation * TCP server for handling Redis protocol connections * Requirements: 1.13, 12.4 */ /** * Configuration for the Redis server */ export interface RedisServerConfig { /** Port to listen on */ port: number; /** Host to bind to (default: '0.0.0.0') */ host?: string; /** Maximum number of concurrent connections */ maxConnections: number; } /** * Command handler function signature */ export type CommandHandler = (command: string[]) => Promise; /** * Redis Server - TCP server that accepts Redis protocol connections */ export declare class RedisServer { private readonly config; private readonly commandHandler; private server; private connections; private listening; constructor(config: RedisServerConfig, commandHandler: CommandHandler); listen(): Promise; close(): Promise; getConnectionCount(): number; isListening(): boolean; private handleConnection; private processBuffer; getPort(): number | null; getHost(): string | null; } //# sourceMappingURL=RedisServer.d.ts.map