import type { AuditEventV1, AuditSink } from "@decionis/agent-safe-pipeline"; import { type RequestScope } from "../http/RequestContext.js"; import type { HashChain } from "./HashChain.js"; import { type LineWriter } from "./LineAuditSink.js"; /** The executor's evidence stream: the pipeline's audit fields, the caller, and the chain. */ export declare const EVIDENCE_STREAM = "agent-safe.executor-evidence/1"; /** * The audit sink the executor runs: every lifecycle event as one line, with * the principal the request was authenticated as, linked on the evidence * chain. `agent-safe.audit/1` is the recorder's contract and is unchanged; * this is the executor's envelope around it, `agent-safe.executor-evidence/1`. * Writing is synchronous, so the recorder's timeout can never interleave two * lines' sequence numbers. */ export declare class HashChainedAuditSink implements AuditSink { private readonly emit; private readonly chain; private readonly scope; constructor(emit: LineWriter, chain: HashChain, scope?: () => RequestScope | null); write(event: AuditEventV1): void; } //# sourceMappingURL=HashChainedAuditSink.d.ts.map