/**
 * Shared permission utilities for wildcard matching and permission checks.
 * Used by both AuthContext and usePermissionMatrix hook.
 */
/**
 * Checks if a wildcard permission path covers a target permission path.
 *
 * Examples:
 * - matchesWildcard('*', 'platform.administration.users.read') => true
 * - matchesWildcard('platform.*', 'platform.administration.users.read') => true
 * - matchesWildcard('platform.administration.*', 'platform.administration.users.read') => true
 * - matchesWildcard('platform.administration.users', 'platform.administration.users.read') => false
 *
 * @param wildcardPath - The permission path that may contain wildcards (e.g., "platform.*" or "*")
 * @param targetPath - The specific permission path to check (e.g., "platform.administration.users.read")
 * @returns true if wildcardPath covers targetPath
 */
export declare function matchesWildcard(wildcardPath: string, targetPath: string): boolean;
/**
 * Checks if user has a specific permission based on their permission list.
 * Handles both exact matches and wildcard permissions.
 *
 * @param userPermissions - Array of user's permission paths
 * @param targetPermission - The permission to check
 * @returns true if user has the permission (directly or via wildcard)
 */
export declare function hasPermission(userPermissions: string[], targetPermission: string): boolean;
/**
 * Checks if user has full access (Super Admin).
 * A user has full access if they have the "*" permission or the "Super Administrator" role.
 *
 * @param permissions - User's permission list
 * @param roles - User's role names
 * @returns true if user has full access
 */
export declare function hasFullAccess(permissions: string[], roles: string[]): boolean;
//# sourceMappingURL=permissions.d.ts.map