import {
  privateRoomMachineSetup,
  privateRoomRootStateConfig,
} from "./machine/unlock-flow";
import { initialState } from "./private-room-state";

export type { PrivateRoomEvent } from "./private-room-events";
export type { PrivateRoomState } from "./private-room-state";
export { initialState } from "./private-room-state";

export const privateRoomMachine = privateRoomMachineSetup.createMachine({
  id: "privateRoom",
  context: initialState,
  ...privateRoomRootStateConfig,
});

export type PrivateRoomMachine = typeof privateRoomMachine;
