import { type WriterOverlay } from './documents/writer-policy.js'; import type { OrgDef, OrgRole } from './types.js'; export interface PolicyContext { /** The project root the org runs from (relative sandbox entries resolve against it). */ orgRoot?: string; /** The role's working directory: the shared workspace, or its own worktree. */ workdir?: string; } /** The overlay of one role, or undefined when none applies (see the header). The workspace entry is canonical. */ export declare function roleOverlay(def: OrgDef | undefined, roleId: string, ctx?: PolicyContext): WriterOverlay | undefined; export declare function effectiveRolePolicy(def: OrgDef | undefined, role: OrgRole, ctx?: PolicyContext): OrgRole['policy']; /** The role with its effective policy; the same object when the policy is unchanged. */ export declare function effectiveRole(def: OrgDef | undefined, role: OrgRole, ctx?: PolicyContext): OrgRole; //# sourceMappingURL=effective-role-policy.d.ts.map