import { ChoiceWithWeight } from "./choices"; import JvmRandomSwitch = io.gatling.javaapi.core.condition.RandomSwitch; export interface On { on(...choices: ChoiceWithWeight[]): T; } export interface RandomSwitchFunction> { /** * Execute one of the "choices" randomly based on their respective weight. Weights are expressed * in percents so their sum must be <= 100%. * * @returns a DSL component for defining the "choices" */ (): On; } export interface RandomSwitch> { randomSwitch: RandomSwitchFunction; } export declare const randomSwitchImpl: , T extends RandomSwitch>(jvmRandomSwitch: J1, wrap: (wrapped: J2) => T) => RandomSwitchFunction;