type LENGTH_ERROR = 'fnr, dnr or hnr must consist of 11 digits'; type CHECKSUM_ERROR = "checksums don't match"; type DATE_ERROR = 'invalid date'; type ErrorReason = LENGTH_ERROR | CHECKSUM_ERROR | DATE_ERROR; type OkResult = { status: 'valid'; type: NrType; }; type NrType = 'dnr' | 'fnr' | 'hnr' | 'tnr' | 'dnr-and-hnr' | 'dnr-and-tnr'; type ErrorResult = { status: 'invalid'; reasons: ErrorReason[]; }; type ValidationResult = OkResult | ErrorResult; export declare const fnr: (digits: string) => ValidationResult; export declare const dnr: (digits: string) => ValidationResult; export declare const hnr: (digits: string) => ValidationResult; export declare const tnr: (digits: string) => ValidationResult; export declare const dnrAndHnr: (digits: string) => ValidationResult; export declare const dnrAndTnr: (digits: string) => ValidationResult; export declare const getType: (digits: string) => NrType; export declare const idnr: (digits: string) => ValidationResult; export {};