import { SessionTo } from "../session"; import { On } from "./on"; import JvmAsLongAs = io.gatling.javaapi.core.loop.AsLongAs; export interface AsLongAsFunction> { /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a Gatling Expression Language String * @returns a DSL component for defining the loop content */ (condition: string): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a Gatling Expression Language String * @param exitASAP - if the loop must be interrupted if the condition becomes false inside the loop * @returns a DSL component for defining the loop content */ (condition: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a Gatling Expression Language String * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: string, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a Gatling Expression Language String * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false inside the loop * @returns a DSL component for defining the loop content */ (condition: string, counterName: string, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a function * @returns a DSL component for defining the loop content */ (condition: SessionTo): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a function * @param exitASAP - if the loop must be interrupted if the condition becomes false inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, exitASAP: boolean): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (condition: SessionTo, counterName: string): On; /** * Define a loop that will iterate as long as the condition holds true * * @param condition - the condition, expressed as a function * @param counterName - the name of the loop counter, as stored in the Session * @param exitASAP - if the loop must be interrupted if the condition becomes false inside the loop * @returns a DSL component for defining the loop content */ (condition: SessionTo, counterName: string, exitASAP: boolean): On; } export interface AsLongAs> { asLongAs: AsLongAsFunction; } export declare const asLongAsImpl: , T extends AsLongAs>(jvmAsLongAs: J1, wrap: (wrapped: J2) => T) => AsLongAsFunction;