/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { AbilityRegistry } from '@byline/auth'; /** * Ability keys for the admin-permissions module. * * `read` gates the inspector view (see docs/07-auth-and-security/01-authn-authz.md). * `update` will gate the per-role ability editor mounted on the * admin-roles role detail page — declared here so the role editor can * assert against it once that surface lands. The per-role editor shares * the `update` key rather than minting `grant` / `revoke` keys: granting * abilities to a role is a single editorial operation from the admin's * perspective, and a granular split would force a redundant key on * every permission-managing role. */ export declare const ADMIN_PERMISSIONS_ABILITIES: { readonly read: 'admin.permissions.read'; readonly update: 'admin.permissions.update'; }; export type AdminPermissionsAbilityKey = (typeof ADMIN_PERMISSIONS_ABILITIES)[keyof typeof ADMIN_PERMISSIONS_ABILITIES]; export declare function registerAdminPermissionsAbilities(registry: AbilityRegistry): void;