import { type DecisionLifecyclePolicy } from '../lifecycle.js'; import type { DecisionDebugCapturePolicy } from './types.js'; export interface EncryptedDebugSidecar { id: string; scope: string; expiresAt: number; nonce: Buffer; ciphertext: Buffer; tag: Buffer; } export interface DebugSidecarBackend { put(record: EncryptedDebugSidecar): Promise; get(id: string): Promise; delete(id: string): Promise; listExpired(scope: string, before: number): Promise; audit(event: { operation: 'capture' | 'read' | 'delete' | 'expire'; id: string; scope: string; }): Promise; } /** Opaque reference and ciphertext only; never serialize plaintext into a receipt or audit event. */ export declare class DecisionDebugSidecar { private readonly policy; private readonly backend; private readonly resolveKey; private readonly authorize; private readonly clock; constructor(policy: DecisionDebugCapturePolicy, backend: DebugSidecarBackend, resolveKey: (reference: string) => Promise, authorize: (scope: string, operation: 'capture' | 'read' | 'delete') => Promise, lifecycle: DecisionLifecyclePolicy, clock?: () => number); capture(scope: string, plaintext: Uint8Array): Promise; read(scope: string, id: string): Promise; delete(scope: string, id: string): Promise; /** Evict expired ciphertext even when nobody reads it. The backend must return * only scoped records; each candidate is checked again before erasure. */ sweepExpired(scope: string): Promise; private get; private erase; private audit; private key; } //# sourceMappingURL=debug-sidecar.d.ts.map