/** * A util hook to enable toggle state. * * @param defaultValue as an initial state toggle value * @default defaultValue as false * @returns [state, toggleOn, toggleOff] * @author Taimoor Khan * @remarks */ /** End file docs */ type ReturnType = [boolean, () => void, () => void]; declare const useToggleState: (defaultValue?: boolean) => ReturnType; export { useToggleState };