import type { Snippet } from 'svelte'; import type { ClassValue, SvelteHTMLElements } from 'svelte/elements'; import { type FloatingFlipOptions, type FloatingPlacement, type FloatingReferenceElement, type FloatingShiftOptions, type FloatingSizeOptions, type FloatingStrategy } from './floating-style'; type HTMLDivAttributes = SvelteHTMLElements['div']; interface Props extends HTMLDivAttributes { /** The HTML element the popup should float next to. */ referenceElement: FloatingReferenceElement | undefined; /** The placement of the popup relative to the reference element. */ placement?: FloatingPlacement | undefined; /** The offset of the popup relative to the reference element. */ offset?: number | undefined; /** The flip options for the popup. */ flip?: FloatingFlipOptions | undefined; /** The shift options for the popup. */ shift?: FloatingShiftOptions | undefined; /** The size options for the popup. */ size?: FloatingSizeOptions | undefined; /** The strategy for positioning the popup. */ strategy?: FloatingStrategy | undefined; /** Whether the popup should automatically position itself. */ auto?: boolean | undefined; /** Classes to apply to the pop-up. */ class?: ClassValue; /** Component children. */ children?: Snippet; /** Whether the popup should allow click outside to close. */ allowClickOutside?: boolean; /** Callback for when the user clicks outside the pop-up. */ onClickOutside?: (target: Element) => unknown; } declare const Floating: import("svelte").Component; type Floating = ReturnType; export default Floating;