import type { DecisionReview, ReviewAuthorization, ReviewDecision, ReviewOperation, ReviewProposal, ReviewScope } from './types.js'; export interface PinnedReviewPolicy { id: string; version: string; tenantId: string; projectId: string; reviewerRoles: string[]; requesterRoles: string[]; executorRoles: string[]; auditorRoles: string[]; operatorRoles: string[]; /** * Roles that may open an access-audited sensitive view. Absent means no role * may, so sensitive views stay disabled unless the pinned policy grants them. */ sensitiveViewRoles?: string[]; minimumQuorumByRisk: Record; /** Immutable governed retention window per risk tier; pins erase eligibility. */ retentionWindowMsByRisk: Record; separateRequesterReviewer: boolean; separateEditorReviewer: boolean; separateReviewerExecutor: boolean; } export interface LiveReviewAuthority { /** Independently attest the caller; do not infer authentication from supplied actor.id. */ authenticate(scope: ReviewScope): Promise; /** Resolve current status from authenticated identity authority; never from persisted review.roles. */ resolve(tenantId: string, projectId: string, actorId: string): Promise<{ roles: string[]; active: boolean; compromised: boolean; conflictsWith: string[]; authorityContext: string; } | null>; /** Current policy digest must match the immutable review pin at every transition. */ currentPolicyDigest(tenantId: string, projectId: string, policyId: string): Promise<`sha256:${string}` | null>; } /** Explicit offline/host adapter; no credential handling and no default allow on missing authority. */ export declare class PinnedReviewAuthorization implements ReviewAuthorization { private readonly authority; private readonly actionAllowed; readonly policyDigest: `sha256:${string}`; private readonly policy; constructor(policy: PinnedReviewPolicy, authority: LiveReviewAuthority, actionAllowed: (scope: ReviewScope, review: DecisionReview, proposal: ReviewProposal) => Promise); private inScope; private actor; private hasRole; private pinned; authorize(scope: ReviewScope, operation: ReviewOperation, review?: DecisionReview): Promise; eligible(scope: ReviewScope, review: DecisionReview, proposal: ReviewProposal): Promise; eligibleApproval(scope: ReviewScope, review: DecisionReview, proposal: ReviewProposal, decision: ReviewDecision): Promise; authorizeAction(scope: ReviewScope, review: DecisionReview, proposal: ReviewProposal): Promise; } //# sourceMappingURL=authorization.d.ts.map