'use client'; import React, { forwardRef } from 'react'; import type { AnimationRepeat, AnimationTrigger } from './types'; import { mergeRefs, repeatToCss, useAnimationTrigger, usePixelAnimations } from './_internal/animation-hooks'; /* ───────────────────────────────────────────────────────────────────────── PixelFlicker — broken-neon-sign opacity flicker loop. ───────────────────────────────────────────────────────────────────────── */ export interface PixelFlickerProps { /** Content to flicker. */ children: React.ReactNode; /** Animation duration in milliseconds. Default `2200`. */ duration?: number; /** Iteration count: a number or `'infinite'`. Default `'infinite'`. */ repeat?: AnimationRepeat; /** When the animation should play. Default `'mount'`. */ trigger?: AnimationTrigger; /** Fires after the final iteration. */ onComplete?: () => void; /** Extra class names applied to the wrapping `