declare type IState = string | number | boolean | undefined; export interface Actions { setLeft: () => void; setRight: () => void; toggle: (value?: T) => void; } declare function useToggle(): [boolean, Actions]; declare function useToggle(defaultValue: T): [T, Actions]; declare function useToggle(defaultValue: T, reverseValue: U): [T | U, Actions]; export default useToggle;