// Re-export all types
export * from './lead'
export * from './conversation'
export * from './settings'
export * from './api'
export * from './widget'

// Global window types
declare global {
  interface Window {
    gtag?: (...args: any[]) => void
    dataLayer?: any[]
    boostbotAdmin?: {
      apiUrl: string
      nonce: string
      version: string
      isRtl: boolean
      direction: 'ltr' | 'rtl'
      locale: string
      adminUrl: string
      pluginUrl: string
      currentPage: string
      user: {
        name: string
        email: string
      }
      settings: Record<string, unknown>
      i18n: Record<string, string>
      backendBaseUrl?: string
      backendSiteId?: string
      selfHosted?: boolean
      directionConfig: {
        isRtl: boolean
        direction: 'ltr' | 'rtl'
        locale: string
        language: string
        textDirection: 'ltr' | 'rtl'
      }
    }
  }
}




