/** * WAL entry serialization and deserialization. * * Fixed 48-byte format: * [magic:4][version:2][opType:1][flags:1][seqNum:8][offset:8][length:4][keyHash:8][reserved:4][checksum:4][trailer:4] */ import type { WalEntry, DeserializeWalResult } from './types'; /** * Compute an 8-byte hash of a key for validation during recovery. * Uses FNV-1a hash truncated to 8 bytes. */ export declare function hashKey(key: string): Uint8Array; /** * Serialize a WAL entry to a fixed 48-byte buffer. */ export declare function serializeWalEntry(entry: WalEntry): Uint8Array; /** * Deserialize a WAL entry from bytes. * Returns null if the entry is invalid or corrupted. */ export declare function deserializeWalEntry(data: Uint8Array, startOffset?: number): DeserializeWalResult | null; //# sourceMappingURL=wal-format.d.ts.map