import { Barcode1D, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class Msi extends Barcode1D { private checksum; constructor(); /** * Sets how many checksums we display. 0 to 2. * * @param checksum The amount of checksums. */ setChecksum(checksum: number | string): void; /** * Draws the barcode. * * @param image The surface. */ draw(image: draw.Surface): void; /** * Returns the maximal size of a barcode. * [0]->width * [1]->height * * @param width The width. * @param height The height. * @return An array, [0] being the width, [1] being the height. */ getDimension(width: number, height: number): number[]; /** * Validates the input. */ protected validate(): void; /** * Overloaded method to calculate checksum. */ protected calculateChecksum(): void; /** * Overloaded method to display the checksum. * * @return The checksum value. */ protected processChecksum(): string | null; } export { Msi };