import * as solid_js from 'solid-js'; import { MaybeElementAccessor } from '@solidjs-use/shared'; interface UseElementBoundingOptions { /** * Reset values to 0 on component unmounted * * @default true */ reset?: boolean; /** * Listen to window resize event * * @default true */ windowResize?: boolean; /** * Listen to window scroll event * * @default true */ windowScroll?: boolean; /** * Immediately call update on component mounted * * @default true */ immediate?: boolean; } /** * Reactive bounding box of an HTML element. * * @see https://solidjs-use.github.io/solidjs-use/core/useElementBounding */ declare function useElementBounding(target: MaybeElementAccessor, options?: UseElementBoundingOptions): { height: solid_js.Accessor; bottom: solid_js.Accessor; left: solid_js.Accessor; right: solid_js.Accessor; top: solid_js.Accessor; width: solid_js.Accessor; x: solid_js.Accessor; y: solid_js.Accessor; update: () => void; }; type UseElementBoundingReturn = ReturnType; export { UseElementBoundingOptions, UseElementBoundingReturn, useElementBounding };