export interface UsePopoverOnScrollRefResult { ref: React.RefObject; onOpenChange: (isOpen: boolean) => void; } /** * This hook provides a way to attach a scroll event listener to a scroll area * inside a popover component. Popovers for picker components only exist when * the picker is open, and they get attached to the DOM outside of the child * tree, so we have to provide a function that can find the target DOM element * to attach the listener to. * @param findScrollArea Function to retreive the DOM element to attach a scroll * event listener to * @param onScroll Scroll event listener function to attach * @param getInitialScrollPosition Function to retrieve the initial scroll * position. If no function is given, or if the function returns `null`, no * initial scrolling will occur. */ export declare function usePopoverOnScrollRef(findScrollArea: (ref: T | null) => HTMLElement | null, onScroll: (event: Event) => void, getInitialScrollPosition?: () => Promise): UsePopoverOnScrollRefResult; export default usePopoverOnScrollRef; //# sourceMappingURL=usePopoverOnScrollRef.d.ts.map