"""Permission matching utilities for namespaced permissions.

Permission format: namespace.resource:action

Examples:
  - fishinfo.telemetry:read
  - vikdata.users:write
  - ingress.cores:delete

Wildcard support:
  - *:* - matches everything (legacy superadmin)
  - *.*:* - matches everything (explicit superadmin)
  - fishinfo.*:* - matches all fishinfo permissions
  - fishinfo.telemetry:* - matches all telemetry actions
"""

from .matcher import (
    has_all_permissions,
    has_any_permission,
    has_permission,
    is_superadmin,
    match_permission,
    parse_permission,
)

__all__ = [
    "parse_permission",
    "match_permission",
    "has_permission",
    "has_any_permission",
    "has_all_permissions",
    "is_superadmin",
]
