/** Replay window state */ export interface ReplayWindow { /** Highest accepted sequence number */ maxSeen: bigint; /** Bitmap: bit i set = sequence (maxSeen - i) was seen */ bitmap: bigint; /** Window size in bits */ windowSize: bigint; } /** * Create a new replay window. * * @param windowSize - Window size in bits (default: 64) */ export declare function createReplayWindow(windowSize?: bigint): ReplayWindow; /** * Check if a sequence number is valid (not a replay) and update the window. * * @returns true if the sequence is valid and accepted, false if it's a replay */ export declare function checkAndUpdateReplay(seq: bigint, window: ReplayWindow): boolean; /** * Check if a sequence number would be valid without updating the window. * * Useful for pre-validation before decryption. */ export declare function isValidSequence(seq: bigint, window: ReplayWindow): boolean; /** * Reset the replay window to initial state. */ export declare function resetReplayWindow(window: ReplayWindow): void; //# sourceMappingURL=replay.d.ts.map