1 | import type { AsyncCommand } from './command/AsyncCommand.js';
|
2 | import type { Command } from './command/Command.js';
|
3 | import type { Scheduler } from '../../arbitrary/scheduler.js';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export type ModelRunSetup<Model, Real> = () => {
|
10 | model: Model;
|
11 | real: Real;
|
12 | };
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export type ModelRunAsyncSetup<Model, Real> = () => Promise<{
|
19 | model: Model;
|
20 | real: Real;
|
21 | }>;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function modelRun<Model extends object, Real, InitialModel extends Model>(s: ModelRunSetup<InitialModel, Real>, cmds: Iterable<Command<Model, Real>>): void;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare function asyncModelRun<Model extends object, Real, CheckAsync extends boolean, InitialModel extends Model>(s: ModelRunSetup<InitialModel, Real> | ModelRunAsyncSetup<InitialModel, Real>, cmds: Iterable<AsyncCommand<Model, Real, CheckAsync>>): Promise<void>;
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | export declare function scheduledModelRun<Model extends object, Real, CheckAsync extends boolean, InitialModel extends Model>(scheduler: Scheduler, s: ModelRunSetup<InitialModel, Real> | ModelRunAsyncSetup<InitialModel, Real>, cmds: Iterable<AsyncCommand<Model, Real, CheckAsync>>): Promise<void>;
|