import { MutableRefObject, Ref } from "react"; //#region src/setRef/setRef.d.ts /** * Assigns a value to an object ref or callback ref. * * This is useful in components that need to keep an internal ref while also * forwarding the same node to a consumer-provided ref. * * @typeParam T - Ref value type. * @param ref - React ref to update. `null` and unsupported values are ignored. * @param value - Value assigned to the ref. Pass `null` when clearing it. * * @example * ```tsx * const localRef = useRef(null); * * const assignRef = useCallback((node: HTMLDivElement | null) => { * localRef.current = node; * setRef(forwardedRef, node); * }, [forwardedRef]); * ``` */ declare function setRef(ref: Ref | MutableRefObject | null | undefined, value: T | null): void; //#endregion export { setRef }; //# sourceMappingURL=setRef.d.ts.map