/**
* @fileoverview 按钮级权限控制指令
* @description 通过权限编码控制元素显示/隐藏
*/
import type { Directive } from 'vue';
import { type PermissionName } from '../utils/permissions';
/**
* 权限指令值接口(新格式)
* @description 支持权限值检查的新格式
*/
interface PermissionDirectiveValue {
permCode?: string;
value: PermissionName[];
}
/**
* 权限指令
* @example
* ```vue
*
* 新建用户
*
*
* 添加
* 操作
* ```
*/
export declare const vPermission: Directive;
/**
* 安装权限指令
* @param app Vue 应用实例
*/
export declare function setupPermissionDirective(app: any): void;
export default vPermission;
//# sourceMappingURL=permission.d.ts.map