/** * Provides a set of methods to compute swiss social security numbers' checksums * and check their validity. */ export declare class AHV13 { /** * Compute the checksum for a given social security number. * * @param ahv12 - Social security number **without its checksum** (aka AHV12) * @returns The social security number's checksum */ private calculateCheckSum; /** * Remove the '.' characters and reverse the social security number * * @param arr - Social security number * @returns The social security number **reversed and in the form of an * array** */ private preProcessArray; /** * Parse the social security number and return its checksum * * # Example * * ```ts * const validator = new AHV13(); * const checksum = validator.checkSum('756.9217.0769.8'); * * console.log(checksum); // 5 * ``` * * @param ahvNumber12 - Social security number **without its checksum** * @returns The social security number's checksum */ checkSum(ahvNumber12: string): number; /** * Validate a AHV13 Number with or without dots in the form of '756.9217.0769.85' * * # Example * * ```ts * const validator = new AHV13(); * * console.log(validator.isValid("756.9217.0769.85")) // true * console.log(validator.isValid("756.9217.0769.82")) // false * ``` * * @param ahv13 - Social security number **with its checksum** * @returns `true` if the number is valid. `false` otherwise. */ isValid(ahv13: string): boolean; }