validateClock()

Validates an HLC clock value and reports structured failures or warnings.

Signature

function validateClock(
  clock: HlcTimestamp,
  options?: { maxDriftMs?: bigint; now?: () => bigint; includeWarnings?: boolean },
): ValidationResult<ValidatedHlcTimestamp>
function validateClock(
  clock: unknown,
  options?: { maxDriftMs?: bigint; now?: () => bigint; includeWarnings?: boolean },
): ValidationResult<ValidatedHlcTimestamp>
function validateClock(
  clock: unknown,
  options?: { maxDriftMs?: bigint; now?: () => bigint; includeWarnings?: boolean },
): ValidationResult<ValidatedHlcTimestamp>