import { WeightAdjusterPlugin, PluginType } from "../../plugins"; import { Instance } from "../../instance"; import { ComputedStat } from "../../consumer"; declare const kDefaultOptions: { /** * 成功率倍率 */ okRatio: number; /** * 延迟倍率 */ delayRatio: number; }; export declare type PolarisDynamicWeightOptions = typeof kDefaultOptions; export declare class PolarisDynamicWeight implements WeightAdjusterPlugin { readonly type = PluginType.WeightAdjuster; readonly name: string; private previous; private readonly options; constructor(options?: Partial); adjust(namespace: string, service: string, instances: Instance[], stat: ComputedStat): void; } export {};