import { SessionTo } from "../session"; import { On } from "./on"; import JvmRepeat = io.gatling.javaapi.core.loop.Repeat; export interface RepeatFunction> { /** * Define a loop that will iterate for a given number of times. * * @param times - the number of iterations * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (times: number, counterName?: string): On; /** * Define a loop that will iterate for a given number of times. * * @param times - the number of iterations, expressed as a Gatling Expression Language String that must evaluate to an integer * @param counterName - the name of the loop counter, as stored in the Session * @returns a DSL component for defining the loop content */ (times: string, counterName?: string): On; /** * Define a loop that will iterate for a given number of times. * * @param times - the number of iterations, 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 */ (times: SessionTo, counterName?: string): On; } export interface Repeat> { repeat: RepeatFunction; } export declare const repeatImpl: , T extends Repeat>(jvmRepeat: J1, wrap: (wrapped: J2) => T) => RepeatFunction;