export interface PermissionPlugin {
    check: (permission: string | string[] | null | undefined) => boolean
    checkAll: (permission: string | string[] | null | undefined) => boolean
}

declare module '#app' {
    interface NuxtApp {
        $permission: PermissionPlugin
    }

    interface RuntimeNuxtApp {
        $permission: PermissionPlugin
    }
}