type Callback = () => void;
/**
 * onElementResize callback will be called whenever the target element resized.
 * Note: called with no params
 *
 * @ignore
 */
type ResizeCallback = () => void;
interface ResizeObserverOptions {
    /**
     * Sets a debounce threshold for the callback. Defaults to 20 milliseconds
     */
    threshold?: number;
}
/**
 * Helper function to know if an element has been resized.
 *
 * @ignore
 *
 * @param target The element that we want to observe.
 * @param callback The callback that handles the resize.
 * @param options Options Map.
 *
 * @returns Unsubscribe function.
 */
export declare const onElementResize: (target: HTMLElement, callback: ResizeCallback, { threshold }?: ResizeObserverOptions) => Callback;
export {};
