/** * 获取上一个值 * @param value 需要获取的值 */ export declare const usePrevious: (value: T) => T | undefined; /** * 模拟componentDidMount * @param fn callback function */ export declare const useMount: (fn: () => void) => void; export default useMount; /** * 模拟componentDidUpdate * @param fn 回调函数 * @param deps */ export declare function useUpdate(fn: () => void, deps?: Array): void; /** * 监听页面变化 * @param callback 回调函数 */ export declare const useRouteChange: (callback?: ((e: HashChangeEvent | PopStateEvent) => void) | undefined) => void;