import { ArrayReply, Command, RedisFunction, RedisScript, RespVersions, UnwrapReply } from '../RESP/types'; import { RedisSocketOptions } from '../client/socket'; import { NamespaceProxySentinel, NamespaceProxySentinelClient, NodeAddressMap, ProxySentinel, ProxySentinelClient, RedisNode } from './types'; export declare function parseNode(node: Record): RedisNode | undefined; export declare function createNodeList(nodes: UnwrapReply>>): RedisNode[]; export declare function clientSocketToNode(socket: RedisSocketOptions): RedisNode; export declare function createCommand(command: Command, resp: RespVersions): (this: T, ...args: Array) => Promise; export declare function createFunctionCommand(name: string, fn: RedisFunction, resp: RespVersions): (this: T, ...args: Array) => Promise; export declare function createModuleCommand(command: Command, resp: RespVersions): (this: T, ...args: Array) => Promise; export declare function createScriptCommand(script: RedisScript, resp: RespVersions): (this: T, ...args: Array) => Promise; /** * Returns the mapped node address for the given host and port using the nodeAddressMap. * If no mapping exists, returns the original host and port. * * @param host The original host * @param port The original port * @param nodeAddressMap The node address map (object or function) * @returns The mapped node or the original node if no mapping exists */ export declare function getMappedNode(host: string, port: number, nodeAddressMap: NodeAddressMap | undefined): RedisNode; //# sourceMappingURL=utils.d.ts.map