import React from 'react'; export declare function isBoolean(value: any): value is boolean; export declare function isFunction(value: any): value is Function; /** * Rect * * @param props */ declare const Rect: React.FC; declare type RectProps = UseRectOptions & { children(args: { rect: PRect | null; ref: React.RefObject; }): JSX.Element; }; declare function useRect(nodeRef: React.RefObject, options?: UseRectOptions): null | DOMRect; declare function useRect(nodeRef: React.RefObject, observe?: UseRectOptions['observe'], onChange?: UseRectOptions['onChange']): null | DOMRect; declare type UseRectOptions = { observe?: boolean; onChange?: (rect: PRect) => void; }; declare type PRect = Partial & { readonly bottom: number; readonly height: number; readonly left: number; readonly right: number; readonly top: number; readonly width: number; }; export default Rect; export { Rect, useRect };