import { LitElement, PropertyValues } from "lit"; type PanTextMode = `hover` | `loop`; declare class PanTextElement extends LitElement { direction: `start` | `end`; disabled: boolean; /** * Interaction mode. * - `hover` (default): pans once while hovered. * - `loop`: pans repeatedly — dwell 2s at the end, reset to the start, * and pan again — until `stopLoop()` is called. Auto-starts when set. */ mode: PanTextMode; private _isOverflowing; private _isHovering; private _loopActive; private _loopAtEnd; private _textEl; private _overflow; private _resizeObserver; private _loopTimer; connectedCallback(): void; disconnectedCallback(): void; firstUpdated(): void; protected updated(changed: PropertyValues): void; /** * Whether a loop pan is currently active (between `startLoop()` and `stopLoop()`). */ get looping(): boolean; /** * Begin looping: pan to the end, dwell there for 2 seconds, reset to the * start and pan again, repeating until `stopLoop()` is called. A no-op when * `disabled`, when there is nothing to reveal, or under reduced-motion. */ startLoop(): void; /** * Stop a loop started with `startLoop()` and snap back to the rest position. */ stopLoop(): void; private _prefersReducedMotion; private _panDuration; private _clearLoopTimer; private _scheduleLoopPan; private _onMouseEnter; private _onMouseLeave; /** * Measures how far the slotted text overflows its container. The measurement * is taken on the inner `.text` span (which clips with an ellipsis), not on * the host — the host never overflows, so measuring it always yielded zero * and the hover interaction never activated. * * Skipped while hovering, because the hover styles switch `.text` to * `overflow: visible` and the measurement would collapse to zero mid-pan. */ private _measure; private _textStyle; protected render(): import("lit").TemplateResult<1>; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'ixfx-pan-text': PanTextElement; } } export { PanTextMode as n, PanTextElement as t };