import { type HTMLMotionProps, type Transition, type UseInViewOptions } from "motion/react";
import * as React from "react";
/** Props accepted by {@link HighlightText}. */
export interface HighlightTextProps extends HTMLMotionProps<"span"> {
/** Inline text content that receives the animated highlight sweep. @default undefined */
text: string;
/** Delays the highlight animation until the text enters the viewport. @default false */
inView?: boolean;
/** Margin passed to the in-view observer when `inView` is enabled. @default "0px" */
inViewMargin?: UseInViewOptions["margin"];
/** Prevents the in-view animation from replaying after the first reveal. @default true */
inViewOnce?: boolean;
/** Motion timing used for the highlight fill animation. @default {duration: 2, ease: "easeInOut"} */
transition?: Transition;
}
/**
* Animates a gradient highlight fill behind inline text content.
*
* @remarks
* - Animated component using the `motion` library
* - Renders a `` element
* - Styling via CSS Modules with `--ac-*` custom properties
* - Client-side only (`"use client"` directive)
*
* @example
* ```tsx
*
* ```
*
* @see {@link HighlightTextProps} for available props
*/
declare const HighlightText: React.ForwardRefExoticComponent & React.RefAttributes>;
export { HighlightText };
//# sourceMappingURL=highlight-text.d.ts.map