UNPKG

vue-nuxt-permission

Version:

A unified permission system for Vue 3 and Nuxt 3 / Nuxt 4 with directives, guards, and async support.

13 lines (12 loc) 710 B
import { Ref } from 'vue'; import { ConfigurePermissionOptions, DecryptHook, GlobalConfig, PermissionsArray } from '../types'; export type { GlobalConfig }; declare const globalConfig: GlobalConfig; export declare const getDecryptHook: () => DecryptHook | undefined; export declare const setDecryptHook: (hook?: DecryptHook) => void; export declare const configurePermission: (permissions: PermissionsArray | any, options?: ConfigurePermissionOptions) => void; export declare const getReactivePermissions: () => Ref<string[], string[]>; export declare const getCurrentPermissions: () => string[]; export declare const isDevMode: () => boolean; export default globalConfig; //# sourceMappingURL=config.d.ts.map