import { SessionTo } from "../session"; import { Executable } from "./execs"; import JvmDoIfOrElse = io.gatling.javaapi.core.condition.DoIfOrElse; import JvmDoIfEqualsOrElse = io.gatling.javaapi.core.condition.DoIfEqualsOrElse; export interface Then { then(executable: Executable, ...executables: Executable[]): OrElse; } export interface OrElse { orElse(executable: Executable, ...executables: Executable[]): T; } export interface DoIfOrElseFunction> { /** * Execute the "then" block only if the condition is true * * @param condition - the condition expressed as a Gatling Expression Language String that must * evaluate to a Boolean * @returns a DSL component for defining the "then" block */ (condition: string): Then; /** * Execute the "then" block only if the condition is true * * @param condition - the condition expressed as a function * @returns a DSL component for defining the "then" block */ (condition: SessionTo): Then; } export interface DoIfOrElse> { doIfOrElse: DoIfOrElseFunction; } export declare const doIfOrElseImpl: , T extends DoIfOrElse>(jvmDoIfOrElse: J1, wrap: (wrapped: J2) => T) => DoIfOrElseFunction; export interface DoIfEqualsOrElseFunction> { /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a Gatling Expression Language String * @param expected - the expected value expressed as a Gatling Expression Language String * @returns a DSL component for defining the "then" block */ (actual: string, expected: string): Then; /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a Gatling Expression Language String * @param expected - the expected static value * @returns a DSL component for defining the "then" block */ (actual: string, expected: unknown): Then; /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a function * @param expected - the expected value expressed as a Gatling Expression Language String * @returns a DSL component for defining the "then" block */ (actual: string, expected: SessionTo): Then; /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a function * @param expected - the expected value expressed as a Gatling Expression Language String * @returns a DSL component for defining the "then" block */ (actual: SessionTo, expected: string): Then; /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a function * @param expected - the expected static value * @returns a DSL component for defining the "then" block */ (actual: SessionTo, expected: unknown): Then; /** * Execute the "then" block only if the actual value is equal to the expected one * * @param actual - the actual value expressed as a function * @param expected - the expected value expressed as a function * @returns a DSL component for defining the "then" block */ (actual: SessionTo, expected: SessionTo): Then; } export interface DoIfEqualsOrElse> { doIfEqualsOrElse: DoIfEqualsOrElseFunction; } export declare const doIfEqualsOrElseImpl: , T extends DoIfEqualsOrElse>(jvmDoIfEqualsOrElse: J1, wrap: (wrapped: J2) => T) => DoIfEqualsOrElseFunction;