import { Entity } from "@rebasepro/types"; import type { AdminCollection } from "@rebasepro/cms-types"; /** * Hook to evaluate roles and permissions for the current user. * It abstracts away the need to pass `authController` to permission evaluation functions. */ export declare function usePermissions(): { canCreate: (collection: AdminCollection, path: string) => boolean; canEdit: (collection: AdminCollection, path: string, entity: Entity | null) => boolean; canDelete: (collection: AdminCollection, path: string, entity: Entity | null) => boolean; canRead: (collection: AdminCollection) => boolean; };