1 | import type { Dispatch, SetStateAction } from 'react';
|
2 | type GetStateAction<S> = () => S;
|
3 | declare function useGetState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>, GetStateAction<S>];
|
4 | declare function useGetState<S = undefined>(): [
|
5 | S | undefined,
|
6 | Dispatch<SetStateAction<S | undefined>>,
|
7 | GetStateAction<S | undefined>
|
8 | ];
|
9 | export default useGetState;
|