/* eslint-disable @typescript-eslint/no-explicit-any */
interface IMessage {
  name?: string;
  message?: string | string[];
  time: number;
  room_id?: string;
  room_name?: string;

  date_time?: number;
}

interface ILog {
  message: string;
  type: "error" | "success";
  id?: number;
}

interface IInputGeo {
  top: number;
  left: number;
  right: number;
  bottom: number;
  width: number;
  height: number;
}

type ChatItemType = "group" | "personal" | null;

interface ChatItem {
  id: string | null;
  name: string | null;
  type: ChatItemType;
}

interface IMsg<T> {
  type: string;
  event: string;
  data: T;
}
