/** * Permission Engine — Evaluates action permissions. * * Pure function. Implements the NEVER-HIDE invariant: permissions disable UI * elements, never remove them from the DOM. * * @module permissionEngine * @see FMPV-MVWC-E001-S004, FR-FMPV-055 */ import type { MasterPatternViewPermissions } from '../types'; /** * Checks if an action is allowed based on permissions. * * When `permissions` is `undefined`, all actions default to `true` (per PRD §9). * When a specific permission key is `undefined`, it defaults to `true`. * * @param permissions - Permission configuration (or undefined for all-allowed) * @param operation - The operation to check * @param masterType - The master type context (for future type-specific logic) * @returns true if the action is allowed */ export declare function isActionAllowed(permissions: MasterPatternViewPermissions | undefined, operation: string, masterType: string): boolean; /** * Returns the warning message for a disabled action (NEVER-HIDE toast). * * @param operation - The operation that is disabled * @returns A user-friendly message explaining the restriction */ export declare function getDisabledToastMessage(operation: string): string; //# sourceMappingURL=permissionEngine.d.ts.map