import { Barcode1D, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class Code39 extends Barcode1D { /** * Code index for the starting character. */ protected starting: number; /** * Code index for the ending character. */ protected ending: number; /** * Indicates if we display the checksum. */ protected checksum: boolean; constructor(); /** * Sets if we display the checksum. * * @param checksum Displays the checksum. */ setChecksum(checksum: boolean): void; /** * Parses the text before displaying it. * * @param text The text. */ parse(text: 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 { Code39 };