UNPKG

@lanaqi/rsr

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