import type { LedgerEntry, RecordOptions, VerificationResult, ChainStats, LedgerExport, LedgerOptions } from './types.js'; /** * LedgerEngine — append-only, hash-chained audit trail for LLM calls. * * Each entry is SHA-256 hashed and linked to the previous entry, * creating a tamper-evident chain. If any entry is modified after * recording, verification will detect the break. */ export declare class LedgerEngine { private store; private headHash; private headSequence; private agent?; private sessionId?; constructor(options?: LedgerOptions); /** * Record an LLM call to the ledger. Returns the sealed entry. */ record(options: RecordOptions): LedgerEntry; /** * Verify the entire chain from genesis to head. */ verify(): VerificationResult; /** * Get chain statistics. */ stats(): ChainStats; /** * Export the full ledger with verification for compliance. */ export(): LedgerExport; /** * Get the most recent N entries. */ recent(count?: number): LedgerEntry[]; /** * Get entries filtered by criteria. */ query(filter: { agent?: string; sessionId?: string; model?: string; operation?: string; since?: string; until?: string; limit?: number; }): LedgerEntry[]; /** * Get the current chain head hash. */ getHeadHash(): string; /** * Get the total number of entries. */ get length(): number; /** * Close the store. */ close(): void; } //# sourceMappingURL=engine.d.ts.map