import type { Dispatch, SetStateAction, Ref as ReactRef } from 'react';
type Ref<T> = ReactRef<T> | Dispatch<SetStateAction<T | undefined>> | null;
export declare const setRef: <T>(ref: Ref<T> | undefined, value: T) => void;
export {};
