import type { Snippet } from 'svelte'; import type { PermissionLevel } from '../../../utils/permissions.js'; interface PermissionGateProps { resource?: string; level?: PermissionLevel; role?: string; anyRole?: string[]; allRoles?: string[]; not?: boolean; /** Override default Forbidden title */ title?: string; description?: string; actionLabel?: string; class?: string; children?: Snippet; fallback?: Snippet; onaction?: () => void; } declare const PermissionGate: import("svelte").Component; type PermissionGate = ReturnType; export default PermissionGate;