/** * Custom hook to toggle a boolean state. * Can be used for toggling visibility, state, etc. * * @param {boolean} initOpen Initial state value. Defaults to `true`. * @param {Function} [onChange] Callback function to be called after state change. * @return {[boolean, () => void]} Current state and a toggle function. */ declare function useToggle(initialState?: boolean, onChange?: (state: boolean) => void): [boolean, () => void]; export default useToggle;