import type { PermissionMode } from "./PermissionMode.js"; export interface PermissionContext { readonly mode: PermissionMode; readonly protectedPaths: readonly string[]; readonly revision: number; runWithMode(mode: PermissionMode, action: () => Promise | T): Promise; setMode(mode: PermissionMode): void; }