import { ChoiceWithWeight } from "./choices"; import { Executable } from "./execs"; import JvmRandomSwitchOrElse = io.gatling.javaapi.core.condition.RandomSwitchOrElse; export interface On { on(...choices: ChoiceWithWeight[]): OrElse; } export interface OrElse { orElse(executable: Executable, ...executables: Executable[]): T; } export interface RandomSwitchOrElseFunction> { /** * Execute one of the "choices" randomly based on their respective weight. Weights are expressed * in percents so their sum must be <= 100%. * * @returns the DSL component for defining the "else" block */ (): On; } export interface RandomSwitchOrElse> { randomSwitchOrElse: RandomSwitchOrElseFunction; } export declare const randomSwitchOrElseImpl: , T extends RandomSwitchOrElse>(jvmRandomSwitch: J1, wrap: (wrapped: J2) => T) => RandomSwitchOrElseFunction;