import type {
  ChatGroup,
  ChatMessage,
  Player,
  SessionSnapshot,
  SessionStatus,
  TakeoverRequest,
  Transaction,
} from "../shared/types";

export type Session = {
  id: string;
  code: string;
  status: SessionStatus;
  createdAt: number;
  bankerId: string;
  blackoutActive: boolean;
  blackoutReason: string | null;
  players: Map<string, Player>;
  transactions: Transaction[];
  chats: ChatMessage[];
  groups: ChatGroup[];
  takeoverRequests: TakeoverRequest[];
  isTest?: boolean;
};

export type SessionSnapshotPayload = SessionSnapshot;
