import { ILoadbalancer, IServer } from '@nestcloud/common'; import { Server } from './server'; import { ILoadbalanerOptions } from './interfaces/loadbalancer-options.interface'; export declare class Loadbalancer implements ILoadbalancer { private readonly INTERVAL_RULES; private readonly id; private readonly name; servers: Server[]; private rule; constructor(options: ILoadbalanerOptions); chooseService(): IServer; updateRule(RuleCls: any): void; addServer(server: Server): void; removeServer(serverId: string): void; getServer(serverId: string): Server; private initialServers; private initialServer; }