UNPKG

@lanaqi/rsr

Version:
22 lines (21 loc) 660 B
import type { AccessPath } from '../access'; /** * 保存签名钩子 * @param navigate 是否导航(默认:true) * @param redirect 重定向路径(如果不存在原始路径时使用) */ export declare const useSaveSignature: (navigate?: boolean, redirect?: string) => ((path?: AccessPath) => void); /** * 删除签名钩子 */ export declare const useDeleteSignature: () => (() => void); /** * 移除签名钩子 */ export declare const useRemoveSignature: () => ((path: string | AccessPath) => void); /** * 清除签名(当前路径)钩子 * * 当触发销毁时执行清除 */ export declare const usePurgeSignature: () => void;