import { Authentication } from '../../authn/types/authn.type'; export interface AuthorizationManager { /** * Determines if access should be granted for a specific authentication and object. */ verify(authentication: Authentication, object: T): void; /** * Determines if access is granted for a specific object. */ check(authentication: Authentication, object: T): boolean; }