export declare const EPONYME_DEFAULT_ROLES: readonly ["viewer", "editor", "owner"]; export type EponymeDefaultRole = typeof EPONYME_DEFAULT_ROLES[number]; /** Applications may store their own role names. */ export type EponymeRole = EponymeDefaultRole | (string & {}); export declare const EPONYME_PERMISSION_ACTIONS: readonly ["content.read", "content.create", "content.update", "content.publish", "content.unpublish", "content.schedule", "content.trash", "content.restore", "content.purge", "content.export", "content.import", "submissions.read", "submissions.delete", "submissions.export", "media.read", "media.upload", "media.delete", "users.manage", "audit.read"]; export type EponymePermissionAction = typeof EPONYME_PERMISSION_ACTIONS[number]; /** Dashboard features that are not content, and are only ever reached by `permission.system()`. */ export declare const EPONYME_SYSTEM_RESOURCES: readonly ["content", "media", "users", "audit"]; export type EponymeSystemResource = typeof EPONYME_SYSTEM_RESOURCES[number]; export type EponymeResourceKind = 'singleton' | 'collection' | 'form' | 'folder' | 'system'; export interface EponymeResource { kind: EponymeResourceKind; name: string; } export interface EponymePermissionTarget { kind: EponymeResourceKind | 'all'; name?: string; } export interface EponymePermissionRule { effect: 'allow' | 'deny'; actions: EponymePermissionAction[]; resources: EponymePermissionTarget[]; } export interface EponymeRoleDefinition { label: string; description?: string; permissions: EponymePermissionRule[]; } export type EponymeRoleDefinitions = Record; export interface EponymeRoleOption { label: string; value: string; default: boolean; }