export interface Actions { setLeft: () => void; setRight: () => void; set: (value: T) => void; toggle: () => 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;