import { SessionTo } from "../session"; import { ChoiceWithKey } from "./choices"; import JvmDoSwitch = io.gatling.javaapi.core.condition.DoSwitch; export interface On { on(...choices: ChoiceWithKey[]): T; } export interface DoSwitchFunction> { /** * Execute one of the "choices" when the actual value is equal to the possibility's one. * * @param actual - the actual value expressed as a Gatling Expression Language String * @returns a DSL component for defining the "choices" */ (actual: string): On; /** * Execute one of the "choices" when the actual value is equal to the possibility's one. * * @param actual - the actual value expressed as a function * @returns a DSL component for defining the "choices" */ (actual: SessionTo): On; } export interface DoSwitch> { doSwitch: DoSwitchFunction; } export declare const doSwitchImpl: , T extends DoSwitch>(jvmDoSwitch: J1, wrap: (wrapped: J2) => T) => DoSwitchFunction;