import WarpError, { type WarpErrorOptions } from './WarpError.ts';
/**
 * Error class for audit receipt validation and persistence failures.
 *
 * ## Error Codes
 *
 * | Code | Description |
 * |------|-------------|
 * | `E_AUDIT_INVALID` | Receipt field validation failed (version, OIDs, ticks, etc.) |
 * | `E_AUDIT_CAS_FAILED` | Compare-and-swap failed during audit commit |
 * | `E_AUDIT_DEGRADED` | Audit service degraded after exhausting retries |
 * | `E_AUDIT_CHAIN_GAP` | Audit chain has a gap (missing commit in ancestry) |
 * | `E_AUDIT_WRITER_MISMATCH` | TickReceipt writer does not match the service's writerId |
 */
export default class AuditError extends WarpError {
    /** Receipt field validation failed. */
    static E_AUDIT_INVALID: string;
    /** Compare-and-swap failed during audit commit. */
    static E_AUDIT_CAS_FAILED: string;
    /** Audit service degraded after exhausting retries. */
    static E_AUDIT_DEGRADED: string;
    /** Audit chain has a gap (missing commit in ancestry). */
    static E_AUDIT_CHAIN_GAP: string;
    /** TickReceipt writer does not match the service's writerId. */
    static E_AUDIT_WRITER_MISMATCH: string;
    constructor(message: string, options?: WarpErrorOptions);
}
