UNPKG

payload-gatekeeper

Version:

The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration

19 lines 635 B
import type { Permission } from '../types'; export interface StructuredOption { label: string; value: string; isParent?: boolean; indent?: number; category?: string; description?: string; } /** * Structure permissions for hierarchical display in select * Groups permissions by category and creates parent-child relationships */ export declare function structurePermissions(permissions: Permission[]): StructuredOption[]; /** * Get display label with visual hierarchy indicators */ export declare function getDisplayLabel(option: StructuredOption): string; //# sourceMappingURL=structurePermissions.d.ts.map