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