export interface UseContentRectResult { contentRect: DOMRectReadOnly; ref: (refValue: T) => void; } /** * Returns a callback ref that will track the `contentRect` of a given refValue. * If the `contentRect` is undefined, it will be set to a new `DOMRect` with * zeros for all dimensions. * @param map Optional mapping function to extract an HTMLElement from the given * refValue * @returns Content rect and a ref callback */ export declare function useContentRect(map?: (ref: T) => HTMLElement | null): UseContentRectResult; export default useContentRect; //# sourceMappingURL=useContentRect.d.ts.map