import type { Snippet } from 'svelte'; import type { PermissionLevel } from '../../../utils/permissions.js'; interface CanProps { /** Resource id (e.g. `projects`) */ resource?: string; /** Minimum level (admin ⊃ write ⊃ read). Default `read`. */ level?: PermissionLevel; /** Exact role required */ role?: string; /** At least one of these roles */ anyRole?: string[]; /** All of these roles */ allRoles?: string[]; /** Invert the check */ not?: boolean; children?: Snippet; /** Rendered when the check fails */ fallback?: Snippet; } declare const Can: import("svelte").Component; type Can = ReturnType; export default Can;