UNPKG

statewave

Version:
18 lines 677 B
import { MachineConfig, MachineState } from "."; /** * Returns a machine schema to be interpreted. * * @remarks * This function create the machine schema for interpreting. * * @param states - 1 or more MachineState configurations * @param options - Optional detail for controlling machine behavior * @returns Returns a Machine schema definition to be interpreted * * @beta */ export declare function machine<S extends string | number | symbol, E>(states: Array<MachineState<S, E>> | MachineState<S, E>, options?: MachineConfig<S>): { states: Array<MachineState<S, E>> | MachineState<S, E>; options?: MachineConfig<S>; }; //# sourceMappingURL=machine.d.ts.map