import { SessionTo } from "../session"; import { On } from "./on"; import JvmForEach = io.gatling.javaapi.core.loop.ForEach; export interface ForEachFunction> { /** * Define a loop that will iterate over a list of values. * * @param seq - the static list of values to iterate over * @param attributeName - the key to store the current element in the Session * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component to define the loop content */ (seq: unknown[], attributeName: string, counterName?: string): On; /** * Define a loop that will iterate over a list of values. * * @param seq - the list of values to iterate over, expressed as a Gatling Expression Language String, must evaluate * to an array * @param attributeName - the key to store the current element in the Session * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component to define the loop content */ (seq: string, attributeName: string, counterName?: string): On; /** * Define a loop that will iterate over a list of values. * * @param seq - the list of values to iterate over, expressed as a function * @param attributeName - the key to store the current element in the Session * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component to define the loop content */ (seq: SessionTo>, attributeName: string, counterName?: string): On; } export interface ForEach> { foreach: ForEachFunction; } export declare const foreachImpl: , T extends ForEach>(jvmForEach: J1, wrap: (wrapped: J2) => T) => ForEachFunction;