import { RefObject } from 'react'; export interface UseContainerWidthProps { containerRef: RefObject; /** * Debounce delay in milliseconds to prevent excessive updates during resize * @default 32 (roughly 30fps) */ debounceMs?: number; } /** * Hook to observe and return the width of a container element * * @param containerRef - Reference to the container element to measure * @param debounceMs - Debounce delay in milliseconds (default: 32ms for ~30fps) * @returns Current width of the container in pixels * * @example * ```tsx * const containerRef = useRef(null); * const width = useContainerWidth({ containerRef }); * * // With custom debounce * const width = useContainerWidth({ containerRef, debounceMs: 100 }); * ``` */ export declare const useContainerWidth: ({ containerRef, debounceMs, }: UseContainerWidthProps) => number; //# sourceMappingURL=useContainerWidth.d.ts.map