import { BaseWidget } from './baseWidget'
import { VariableGroup } from './variables'
import { WidgetEvent } from './event'

export type ReferenceLine = {
  id: string
  type: 'horizontal' | 'vertical' | null
  value: number
  x: number
  y: number
}

export type Page = {
  id: string
  name: string
  type: 'page'
  hidden: boolean
  locked: boolean
  part?: string
  state?: string
  referenceLine: ReferenceLine[]
  props: Record<string, any>
  style: Record<string, any>[]
  events: WidgetEvent[]
  variables: VariableGroup[]
  children: BaseWidget[]
}
