import { Router, NavigationGuard } from 'vue-router'; import { Ref } from 'vue'; export function access(): { hasAccess(accessId: string | number): Promise; isDataReady(): boolean; setRole(roleId: string | Promise): void; setAccess(accessIds: Array | Promise>): void; getAccess(): string[]; }; export function useAccess(accessId: Array): Ref; declare module '@fesjs/fes' { interface PluginBuildConfig { access?: | { rules: Record; } | false; } interface PluginRuntimeConfig { access?: { noFoundHandler: (param: { router: Router } & NavigationGuard) => void; unAccessHandler: (param: { router: Router } & NavigationGuard) => void; }; } }