import { DependencyList, MutableRefObject } from 'react'; import { NonFunction } from './common/non-function.type'; declare type useSuperRef = { (): readonly [V | undefined, MutableRefObject]; (initialValue: () => V): readonly [V, MutableRefObject]; (initialValue: NonFunction): readonly [V, MutableRefObject]; (factory: () => V, deps: DependencyList): readonly [V, MutableRefObject]; (factory: (prev: V) => V, deps: DependencyList): readonly [V, MutableRefObject]; }; export declare const useSuperRef: useSuperRef; export {};