import { HASSDomEvent , fireEvent } from "./fire-event" ; /**
 * Broadcast haptic feedback requests
 */ export type HapticType = "success" | "warning" | "failure" | "light" | "medium" | "heavy" | "selection" ; declare global { interface HASSDomEvents { haptic : HapticType ; } interface GlobalEventHandlersEventMap { haptic : HASSDomEvent < HapticType > ; } } export const forwardHaptic = ( hapticType ) => { fireEvent ( window , "haptic" , hapticType ) ; } ;