import { type SetStateAction, type Dispatch, type MutableRefObject } from 'react'; /** * Utility hook that provides a ref as state and also a mutable ref that is updated * when the ref changes. */ export declare function useStateRef(): [ element: T | null, setElement: Dispatch>, elementRef: MutableRefObject ];