/** Permission scope normalization shared by admission and runtime checks. */ export declare const STORAGE_PERMISSIONS: Set; export declare const INTERCEPT_PERMISSIONS: Set; /** The decision point controlled by each intercept permission. Keeping this * mapping in the scope adapter (rather than accepting every `tui/*` name for * every permission) prevents a manifest or grant from silently crossing an * event boundary. */ export declare const INTERCEPT_EVENT_SCOPE_BY_PERMISSION: Readonly>; /** A session scope is carried through the message envelope and may also be * used by an intercept grant. Keep the canonical bound here so admission, * grant evaluation, and runtime delivery cannot disagree about whether a * scope is executable. */ export declare const SESSION_SCOPE_MAX_CHARS = 256; export type ScopeKind = 'component' | 'command' | 'session' | 'event'; export interface NormalizedPermissionScope { kind: ScopeKind; value: string; } /** Return undefined when this adapter cannot enforce the supplied scope. */ export declare function normalizePermissionScope(permission: string, scope: string, componentId: string): NormalizedPermissionScope | undefined; export declare function scopeCovers(declared: NormalizedPermissionScope, actual: NormalizedPermissionScope): boolean; /** * Permission-aware containment. An event-point grant is the parent scope of * the sessions delivered through that point, while a session grant can never * be promoted into an event-point grant. This relation is also used for * denies, so a narrow `session:` deny wins over a broad event grant. */ export declare function permissionScopeCovers(permission: string, declared: NormalizedPermissionScope, actual: NormalizedPermissionScope): boolean; /** Decision permission scopes may be expressed as one named event point. */ export declare const TUI_EVENT_SCOPE_NAMES: Set; export declare function rawScopeCovers(permission: string, declared: string, actual: string, componentId: string): boolean; //# sourceMappingURL=permission-scope.d.ts.map