NIC number, old or new format. Strings and finite numbers are accepted; other types return a failure without throwing.
Optionaloptions: NicOptions
Optional { referenceDate } used for age and future-date checks. Defaults to today.
Decoded details (date of birth, age, gender, both formats), or null if the NIC is invalid.
Parses a Sri Lankan National Identity Card number. Returns structured NicInfo if valid, or null if invalid.