import React from "react";
interface PortalTrackerContextValue {
	register: (element: HTMLElement) => () => void;
	containsElement: (element: Node) => boolean;
}
export declare function PortalTrackerProvider({ children }: {
	children: React.ReactNode
}): React.ReactElement;
export declare function usePortalTracker(): PortalTrackerContextValue | undefined;
/**
* Registers a DOM element as a tracked portal container.
* Call with the portal's root element once it mounts.
* The element is automatically unregistered on unmount.
*
* Usage in a component that renders a portaled dropdown:
* ```tsx
* const registerPortal = useRegisterPortal();
* <Select.Portal ref={registerPortal}>...</Select.Portal>
* ```
*/
export declare function useRegisterPortal(): (element: HTMLElement | null) => void;
export {};
