import type { PopoverRepositionMode, PositioningShorthandValues } from "./popover.options.js"; export declare class Positioning { private _repositionMode; set repositionMode(value: PopoverRepositionMode); get repositionMode(): PopoverRepositionMode; private _popoverReference; set popoverReference(value: HTMLElement | null); get popoverReference(): HTMLElement | null; private anchorReference; private rootMargin; private overflowBoundaryReference; private _position; set position(value: PositioningShorthandValues); get position(): PositioningShorthandValues; private _openPositions; get openPositions(): Array; constructor(args: { repositionMode: PopoverRepositionMode; popoverReference: HTMLElement | null; anchorReference: HTMLElement; overflowBoundaryReference?: HTMLElement; }); /** * * checkPosition * * This method runs when the popover has been repositioned and checks if the new position has space available for the popover (since we don't want to move to a position where there isn't enough space). * * Returns true if the position has space available for the popover, otherwise returns false. */ checkPosition: (openPosition: PositioningShorthandValues) => boolean; /** * ## getOpenPositions * * @description Returns an array of open positions based on the repositionMode */ getOpenPositions: () => Array; /** * ## oppositePosition * Returns the opposite position of the collisionEdge */ private oppositePosition; private getOpenPositionsFromEdge; /** * ## findOpenPositionsFromCollision * * Returns an array of open positions based on the collisionEdge */ findOpenPositionsFromCollision: (entry: IntersectionObserverEntry) => Array; } //# sourceMappingURL=positioning.d.ts.map