import type { AsyncCommand } from './command/AsyncCommand.js'; import type { Command } from './command/Command.js'; import type { Scheduler } from '../../arbitrary/scheduler.js'; /** * Synchronous definition of model and real * @remarks Since 2.2.0 * @public */ export type ModelRunSetup = () => { model: Model; real: Real; }; /** * Asynchronous definition of model and real * @remarks Since 2.2.0 * @public */ export type ModelRunAsyncSetup = () => Promise<{ model: Model; real: Real; }>; /** * Run synchronous commands over a `Model` and the `Real` system * * Throw in case of inconsistency * * @param s - Initial state provider * @param cmds - Synchronous commands to be executed * * @remarks Since 1.5.0 * @public */ export declare function modelRun(s: ModelRunSetup, cmds: Iterable>): void; /** * Run asynchronous commands over a `Model` and the `Real` system * * Throw in case of inconsistency * * @param s - Initial state provider * @param cmds - Asynchronous commands to be executed * * @remarks Since 1.5.0 * @public */ export declare function asyncModelRun(s: ModelRunSetup | ModelRunAsyncSetup, cmds: Iterable>): Promise; /** * Run asynchronous and scheduled commands over a `Model` and the `Real` system * * Throw in case of inconsistency * * @param scheduler - Scheduler * @param s - Initial state provider * @param cmds - Asynchronous commands to be executed * * @remarks Since 1.24.0 * @public */ export declare function scheduledModelRun(scheduler: Scheduler, s: ModelRunSetup | ModelRunAsyncSetup, cmds: Iterable>): Promise;