import { SessionTo } from "../session"; import { Executable } from "./execs"; import JvmDoIf = io.gatling.javaapi.core.condition.DoIf; import JvmDoIfEquals = io.gatling.javaapi.core.condition.DoIfEquals; export interface Then { then(executable: Executable, ...executables: Executable[]): T; } export interface DoIfFunction> { /** * 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 DoIf> { doIf: DoIfFunction; } export declare const doIfImpl: , T extends DoIf>(jvmDoIf: J1, wrap: (wrapped: J2) => T) => DoIfFunction; export interface DoIfEqualsFunction> { /** * 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 Gatling Expression Language String * @param expected - the expected value expressed as a function * @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 DoIfEquals> { doIfEquals: DoIfEqualsFunction; } export declare const doIfEqualsImpl: , T extends DoIfEquals>(jvmDoIfEquals: J1, wrap: (wrapped: J2) => T) => DoIfEqualsFunction;