import { type StateFrom } from "https://deno.land/x/xstate@xstate%405.0.0-beta.23/src/types.ts";
Type Parameters
T extends AnyStateMachine | ((...args: any[]) => AnyStateMachine)
definition: T extends AnyStateMachine ? ReturnType<T["transition"]> : T extends (...args: any[]) => AnyStateMachine ? ReturnType<ReturnType<T>["transition"]> : never