import { ComputePositionConfig } from '@floating-ui/dom'; import { ReactiveControllerHost } from 'lit'; /** * A reactive controller that provides a directive that calls `autoUpdate` and `computePosition` of Floating UI library. * This provides a declarative way to update floating position automatically. * * 1. Create an instance of `FloatingUIAutoUpdateController` in the constructor or in a class field. * 2. Attach `instance.refFloating()` and `instance.refReference()` to appropriate elements. * 3. Call `instance.directive()` inside a html template. */ export declare class FloatingUIAutoUpdateController { private readonly _host; private readonly _isOptionsUpdated?; private _floatingElement; private _referenceElement; /** * Context information to be passed with floating-ready event */ private _triggerContext; constructor(_host: T, _isOptionsUpdated?: ((current: Partial, previous: Partial) => boolean) | undefined); /** * Set context information that will be included in the floating-ready event */ setTriggerContext(context: Record): void; /** * Clear the trigger context */ clearTriggerContext(): void; private readonly _refCallbackFloating; private readonly _refCallbackReference; get floatingElement(): HTMLElement | undefined; get referenceElement(): Element | undefined; refFloating(): import('lit-html/directive.js').DirectiveResult; refReference(): import('lit-html/directive.js').DirectiveResult; directive(options: Partial, enabled?: boolean): import('lit-html/directive.js').DirectiveResult; }