import * as React$1 from "react"; //#region src/hooks/use-state-machine.d.ts type Machine = { [k: string]: { [k: string]: S; }; }; type MachineState = keyof T; type UnionToIntersection = (T extends any ? (x: T) => any : never) extends ((x: infer R) => any) ? R : never; /** Reducer-based state machine; returns [state, send]. Unmatched events are no-ops. */ declare function useStateMachine(initialState: MachineState, machine: M & Machine>): [keyof M, React$1.ActionDispatch<[event: keyof UnionToIntersection]>]; //#endregion export { useStateMachine };