import { SessionTo } from "../session"; import { ChoiceWithKey } from "./choices"; import { Executable } from "./execs"; import JvmDoSwitchOrElse = io.gatling.javaapi.core.condition.DoSwitchOrElse; export interface On { on(...choices: ChoiceWithKey[]): OrElse; } interface OrElse { orElse(executable: Executable, ...executables: Executable[]): T; } export interface DoSwitchOrElseFunction> { /** * Execute one of the "choices" when the actual value is equal to the possibility's one, otherwise execute the "else" * block. * * @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, otherwise execute the "else" * block. * * @param actual - the actual value expressed as a function * @returns a DSL component for defining the "choices" */ (actual: SessionTo): On; } export interface DoSwitchOrElse> { doSwitchOrElse: DoSwitchOrElseFunction; } export declare const doSwitchOrElseImpl: , T extends DoSwitchOrElse>(jvmDoSwitchOrElse: J1, wrap: (wrapped: J2) => T) => DoSwitchOrElseFunction; export {};