import { type ACLContext, type Authorization } from '@dokieli/web-access-control'; import { NamedNode } from 'rdflib'; import type { AclLogic } from '../types'; export declare const ACCESS_ROLES: readonly ["Owner", "Editor", "No Access", "Viewer", "Poster", "Submitter"]; export declare const PUBLIC_ACCESS_ROLES: readonly ["No Access", "Viewer"]; /** * A Control grant without Write is the legacy "write locked" owner grant. * * It is intentionally not part of ACCESS_ROLES yet: that list is consumed by * the existing UI, whose selector will be updated in a later change. */ export declare const WRITE_LOCKED_OWNER_ROLE: "Owner (write locked)"; export { Authenticated, Public } from '@dokieli/web-access-control'; export type AccessRole = typeof ACCESS_ROLES[number] | typeof WRITE_LOCKED_OWNER_ROLE; export type PublicAccessRole = typeof PUBLIC_ACCESS_ROLES[number]; export type ContainerAccessScope = 'folder+contents' | 'folder' | 'contents'; export interface ContainerAccessScopeResult { distinctScopes: ContainerAccessScope[]; primaryScope: ContainerAccessScope; mixed: boolean; } export declare function classifyAuthorizationScope(resource: string, authorization: Authorization, inherited?: boolean): ContainerAccessScope | undefined; export declare function filterAuthorizationsByContainerScope(resource: string, authorizations: Authorization[], scope: ContainerAccessScope, inherited?: boolean): Authorization[]; /** * Classify the direct ACL predicates for a container. Mixed grants are * conservatively treated as covering both scopes. */ export declare function classifyContainerAccessScope(context: ACLContext): ContainerAccessScope; export declare function analyzeContainerAccessScope(context: ACLContext): ContainerAccessScopeResult; export declare const ACL_LINK: NamedNode; export declare function createAclLogic(store: any): AclLogic; //# sourceMappingURL=aclLogic.d.ts.map