type TInitialValue = V | (() => V); interface IUseToggleMethods { toLeftValue: () => void; toRightValue: () => void; toggle: () => void; } export type TUseToggle = [V, IUseToggleMethods]; export default function useToggle(leftValue: L, rightValue: R, initialValue: TInitialValue): TUseToggle; export {};