import { ErrorFactory } from "./errors.mjs"; //#region src/state-machine.d.ts /** * Typed transition legality from a constants tuple (the conventions.md * vocabulary pattern). The transition map is typed against the tuple, so an * invalid literal cannot compile; `assert` throws via the injected * ErrorFactory so it drops straight into a command guard. */ export declare function createStateMachine(states: readonly State[], transitions: Partial, readonly NoInfer[]>>, options?: { errors?: ErrorFactory; }): Readonly<{ states: readonly State[]; can: (from: State, to: State) => boolean; assert: (from: State, to: State) => void; }>; //#endregion //# sourceMappingURL=state-machine.d.mts.map