import { RawParams, StateDeclaration } from '@uirouter/core'; /** * A hook that invokes the provided callback whenever the current state changes. * * The callback receives the [[StateDeclaration]] and parameter values of the new current state. * * Example: * ```jsx * function ShowCurrentState() { * const [routerState, setRouterState] = useState(''); * useOnStateChanged((state) => setState(state.name); * return {routerState ? `state changed to ${routerState}` : null} * } * ``` * * @param onStateChangedCallback a callback that receives the new current state and parameter values */ export declare function useOnStateChanged(onStateChangedCallback: (state: StateDeclaration, params: RawParams) => void): void;