import type { StandardSchemaV1 } from "@standard-schema/spec"; import type { RunOptions } from "./cli/quint.js"; import type { Config } from "./driver/types.js"; export type { RunOptions } from "./cli/quint.js"; export type { Config } from "./driver/types.js"; export { defaultConfig } from "./driver/types.js"; export { QuintError, QuintNotFoundError } from "./cli/quint.js"; export { NoTracesError, StateMismatchError, TraceReplayError } from "./runner/runner.js"; type PicksSchema = Record>; type HandlerPicks = { readonly [K in keyof Fields]: StandardSchemaV1.InferOutput; }; type DriverFactoryResult>>, State> = { [K in keyof S]: (picks: HandlerPicks) => void | Promise; } & { getState?: () => State; config?: () => Config; }; type DefinedSimpleActions>>> = { readonly [K in keyof S]: { readonly picks: S[K]; readonly handler: (picks: HandlerPicks) => void | Promise; }; }; interface AnySimpleActionDefPicks { readonly picks: PicksSchema; } interface AnySimpleActionDefHandler { readonly handler: (picks: any) => void | Promise; } type AnySimpleActionDef = AnySimpleActionDefPicks & AnySimpleActionDefHandler; export interface SimpleActionMap { readonly [action: string]: AnySimpleActionDef; } interface SimpleDriverActions { readonly actions: Actions; } interface SimpleDriverHooks { readonly getState?: () => S; readonly config?: () => Config; } export type SimpleDriver = SimpleDriverActions & SimpleDriverHooks; interface SimpleRunStateCheck { readonly compareState: (spec: S, impl: S) => boolean; readonly deserializeState: (raw: unknown) => S; } export declare const stateCheck: (deserializeState: (raw: unknown) => S, compareState: (spec: S, impl: S) => boolean) => SimpleRunStateCheck; interface SimpleRunDriver { readonly driver: () => SimpleDriver | Promise>; } interface SimpleRunOptionsExtra { readonly stateCheck?: SimpleRunStateCheck | undefined; readonly concurrency?: number | undefined; } export type SimpleRunOptions = RunOptions & SimpleRunDriver & SimpleRunOptionsExtra; export declare function defineDriver>>, State = unknown>(schema: S, factory: () => DriverFactoryResult): () => SimpleDriver>; export declare const run: (opts: SimpleRunOptions) => Promise<{ readonly tracesReplayed: number; readonly seed: string; }>; export { transformITFValue } from "@firfi/itf-trace-parser"; //# sourceMappingURL=simple.d.ts.map