import type { Badge } from '@/assets/types'

export interface TwitchChatOptions {
  login: {
    username: string
    password: string
  }
  channels: string[]
}

export const MessageTypes = ['PRIVMSG', 'WHISPER']
export type MessageType = (typeof MessageTypes)[number]

export interface Metadata {
  username: string
  messageType: MessageType
  channel: string
  message: string
  tags: { [k: string]: any }
}

export interface VodMessageBadge {
  version: string
  setId: string
}

export interface VodMessage {
  message: string
  messager: {
    name: string
    login: string
    pfp: string
    colorHex: string
  }
  offset: number
  badges: Badge[]
}
