import type { NativeProjectPaths } from './native-types.js'; import { type NativeImplementationScopeBundle, type NativeImplementationScope } from './native-verification-scope.js'; import { type NativePartialAllowance, type NativeReadableVerificationEvidenceEnvelope, type NativeVerificationEvidenceEnvelope } from './native-verification-evidence.js'; import { type NativeVerificationReceipt } from './native-verification-receipt.js'; export declare const MAX_NATIVE_EVIDENCE_DOCUMENT_BYTES: number; /** Retained for callers that size transient bundles; persistence is governed per document. */ export declare const MAX_NATIVE_IMPLEMENTATION_SCOPE_BUNDLE_BYTES: number; export type NativeEvidenceKind = 'snapshots' | 'scopes' | 'allowances' | 'verifications' | 'reports' | 'receipts'; export interface NativeEvidenceReadHooks { afterParentChainCaptured?: () => void | Promise; afterOpen?: () => void | Promise; beforeFinalCheck?: () => void | Promise; } export interface NativeVerificationAcceptanceCounts { total: number; evidenced: number; skipped: number; } export declare function nativeEvidenceRef(kind: NativeEvidenceKind, hash: string): string; export declare function nativeReportEvidenceRef(hash: string): string; export declare function writeNativeVerificationReportSnapshot(options: { paths: NativeProjectPaths; name: string; hash: string; text: string; }): Promise; export declare function readNativeVerificationReportSnapshot(paths: NativeProjectPaths, name: string, hash: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; export declare function writeNativeImplementationScope(options: { paths: NativeProjectPaths; name: string; bundle: NativeImplementationScopeBundle; }): Promise; export declare function readNativeImplementationScopeBundle(paths: NativeProjectPaths, name: string, ref: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; export declare function readNativeImplementationScope(paths: NativeProjectPaths, name: string, ref: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; export declare function writeNativePartialAllowance(options: { paths: NativeProjectPaths; name: string; allowance: NativePartialAllowance; }): Promise; export declare function readNativePartialAllowance(paths: NativeProjectPaths, name: string, ref: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; export declare function writeNativeVerificationReceipt(options: { paths: NativeProjectPaths; name: string; receipt: NativeVerificationReceipt; }): Promise; export declare function readNativeVerificationReceipt(paths: NativeProjectPaths, name: string, ref: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; /** * List persisted typed receipt refs without trusting arbitrary directory names. * Callers still read each document through readNativeVerificationReceipt, which * performs the full bounded and symlink-safe validation. */ export declare function listNativeVerificationReceiptRefs(paths: NativeProjectPaths, name: string): Promise; export declare function writeNativeVerificationEvidence(options: { paths: NativeProjectPaths; name: string; evidence: NativeVerificationEvidenceEnvelope; }): Promise; export declare function readNativeVerificationEvidence(paths: NativeProjectPaths, name: string, ref: string, hooks?: NativeEvidenceReadHooks, changeDir?: string): Promise; /** * Reads the compact acceptance counters for an archived change. Archived v1 * envelopes predate the current receipt-bound v2 parser, but still carry their * immutable acceptance trace and must remain visible in the read-only Dashboard. */ export declare function readArchivedNativeVerificationAcceptanceCounts(paths: NativeProjectPaths, name: string, ref: string, changeDir: string): Promise; //# sourceMappingURL=native-evidence-storage.d.ts.map