import React from 'react'; /** * Triggers a window resize event when dependencies change. * Useful for forcing virtualized components to recalculate visible items * after layout changes (e.g., when panels expand/collapse). * * Uses double requestAnimationFrame to ensure the resize event is dispatched * after the browser has completed layout recalculation. Properly cleans up * all pending RAF callbacks and timeouts on unmount or dependency changes. * @param dependencies - Array of values to watch for changes * @param timeout - Optional delay in milliseconds before dispatching the resize event (default: 0) * @example * ```typescript * const [isExpanded, setIsExpanded] = useState(false); * useResizeObserverTrigger([isExpanded]); * ``` */ export declare function useResizeObserverTrigger(dependencies: React.DependencyList, timeout?: number): void;