import {
  userMachineSetup,
  userRootStateConfig,
} from "./machine/session-flow";
import { initialState } from "./user-state";

export type { UserState } from "./user-state";
export { initialState } from "./user-state";
export type { UserEvent } from "./user-events";

export const userMachine = userMachineSetup.createMachine({
  id: "user",
  context: initialState,
  ...userRootStateConfig,
});

export type UserMachine = typeof userMachine;
