import type { AuthorizationFinalizationInput, AuthorizationVerifier, CapturedIntent, DecisionGate, JsonObject, VerifiedAuthorization } from "@decionis/agent-safe-pipeline"; import type { EffectEvidenceRegister } from "./EffectEvidenceRegister.js"; export interface EffectAwareGrantVerifierOptions { readonly verifier: AuthorizationVerifier; readonly register: EffectEvidenceRegister; readonly observer: { readonly id: string; readonly version: string; }; } /** * The verifier the executor runs, wrapped so that the observation the * handler made reaches the authority with the commit it belongs to. It adds * nothing to the claim: `verifyAndConsume` is the delegate's, unchanged, and * the grant is still consumed once by whoever the adopter configured. * * On `finalize` it attaches the effect record the handler registered for * this exact authorization. The authority binds evidence by the * expected-effect digest and the commit correlation id and refuses a * finalization whose evidence it cannot bind, which would lose the commit * outcome with it; so the delegate's own drop rule applies and an attempt * with no registered observation finalizes exactly as it did before. */ export declare class EffectAwareGrantVerifier implements AuthorizationVerifier { private readonly options; constructor(options: EffectAwareGrantVerifierOptions); verifyAndConsume(captured: CapturedIntent, decision: DecisionGate): Promise; /** Claim material is the delegate's: this wrapper holds nothing of a claim. */ claimMaterial(authorization: VerifiedAuthorization): JsonObject | null; adoptClaim(authorization: VerifiedAuthorization, material: JsonObject): boolean; finalize(input: AuthorizationFinalizationInput): Promise<"RECORDED" | "PENDING">; } //# sourceMappingURL=EffectAwareGrantVerifier.d.ts.map