import { BCGBarcode1D, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class BCGi25 extends BCGBarcode1D { private checksum; private ratio; constructor(); /** * Sets if we display the checksum. * * @param checksum Displays the checksum. */ setChecksum(checksum: boolean): void; /** * Sets the ratio of the black bar compared to the white bars. * * @param ratio The ratio. */ setRatio(ratio: number | string): void; /** * Draws the barcode. * * @param image The image. */ 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, number]; /** * Validates the input. */ protected validate(): void; /** * Overloaded method to calculate checksum. */ _calculateChecksum(): void; /** * Overloaded method to display the checksum. * * @return The checksum value. */ protected processChecksum(): string | null; /** * Changes the size of the bars based on the ratio * * @param bar The bars. * @return New bars. */ private changeBars; } export { BCGi25 };