import { Block } from '../core/index.ts'; import type { IBaseBlockConfig } from '../types/index.ts'; /** * @public * * Configuration for loop block */ export interface ILoopConfig extends IBaseBlockConfig { /** * Will execute this assertion for each iteration of the loop. If it succeeds, the 'then' block is executed */ while: Block; /** * Block to be executed */ then: Block; } /** * @public * * Configuration for loop block (do-while variant) */ export interface IDoWhileConfig extends IBaseBlockConfig { /** * Will execute this assertion for each iteration of the loop. If it succeeds, the 'then' block is executed */ while: Block; /** * Block to be executed */ do: Block; } /** * @public * Continues to execute a block until an assertion fails * * @param config - Configuration for loop */ export declare function loop(config: ILoopConfig): Block; /** * @public * Continues to execute a block until an assertion fails (do-while variant) * * @param config - Configuration for loop */ export declare function loop(config: IDoWhileConfig): Block; //# sourceMappingURL=loop.d.ts.map