import { int } from '../../../../customTypings'; /** *

PDF417 error correction implementation.

* *

This example * is quite useful in understanding the algorithm.

* * @author Sean Owen * @see com.google.zxing.common.reedsolomon.ReedSolomonDecoder */ export default class ErrorCorrection { private field; constructor(); /** * @param received received codewords * @param numECCodewords number of those codewords used for EC * @param erasures location of erasures * @return number of errors * @throws ChecksumException if errors cannot be corrected, maybe because of too many errors */ decode(received: Int32Array, numECCodewords: int, erasures: Int32Array): int; /** * * @param ModulusPoly * @param a * @param ModulusPoly * @param b * @param int * @param R * @throws ChecksumException */ private runEuclideanAlgorithm; /** * * @param errorLocator * @throws ChecksumException */ private findErrorLocations; private findErrorMagnitudes; }