/*! * * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ type UseComboboxPopoverOptions = { isOpen: boolean; onOpenChange: (isOpen: boolean) => void; isDisabled: boolean; isPortaled?: boolean; floatingStrategy?: 'absolute' | 'fixed'; }; /** * Anchors the combobox panel to the control. Deliberately does not use * `useRole`, since the ARIA lives on the trigger button rather than on the * reference element, and the composition differs between the searchable and * select-only patterns. */ export declare function useComboboxPopover({ isOpen, onOpenChange, isDisabled, isPortaled: isPortaledProp, floatingStrategy, }: UseComboboxPopoverOptions): { context: { x: number; y: number; placement: import("@floating-ui/react-dom").Placement; strategy: import("@floating-ui/react-dom").Strategy; middlewareData: import("@floating-ui/react-dom").MiddlewareData; isPositioned: boolean; update: () => void; floatingStyles: React.CSSProperties; open: boolean; onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void; events: import("@floating-ui/react").FloatingEvents; dataRef: React.MutableRefObject; nodeId: string | undefined; floatingId: string | undefined; refs: import("@floating-ui/react").ExtendedRefs; elements: import("@floating-ui/react").ExtendedElements; }; floatingStyles: import("react").CSSProperties; getFloatingProps: (userProps?: React.HTMLProps) => Record; getReferenceProps: (userProps?: React.HTMLProps) => Record; isPortaled: boolean; refs: { reference: import("react").MutableRefObject; floating: React.MutableRefObject; setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void; setFloating: (node: HTMLElement | null) => void; } & import("@floating-ui/react").ExtendedRefs; }; export {}; //# sourceMappingURL=use-combobox-popover.d.ts.map