export type H5ExperienceKind = 'content' | 'result'
export type H5ExperiencePresentation = 'sheet' | 'dialog' | 'fullscreen'

export interface H5ExperienceFallbackPayload {
  title: string
  body: string
  motionClass: string
  contentKey: string
  once: boolean
  priority: number
  autoPopup: boolean
}

export interface H5ExperienceRequest {
  kind: H5ExperienceKind
  title: string
  subtitle?: string
  url: string
  bridgeVersion: string
  presentation: H5ExperiencePresentation
  context: Record<string, unknown>
  fallback: H5ExperienceFallbackPayload
}

export interface H5BridgeMessage {
  action?: string
  type?: string
  payload?: Record<string, unknown>
}
