import { DispatchMaybeWithAction } from '../types'; /** * Boolean reducer that toggles it's state by default or is overwritten by a passed value * @param {object.=} initializerArg - initial state of the reducer * @param {function(object.) => boolean=} initializer - callback that initilizes the reducer's state * @returns {[boolean, DispatchWithoutAction]} - the new useReducer hook [toggle, setToggle] */ declare const useBooleanToggler: (initializerArg?: boolean) => [boolean, DispatchMaybeWithAction]; export default useBooleanToggler;