import { BCGBarcode1D, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class BCGcode93 extends BCGBarcode1D { private static readonly EXTENDED_1; private static readonly EXTENDED_2; private static readonly EXTENDED_3; private static readonly EXTENDED_4; private readonly starting; private readonly ending; /** * The encoded data. */ protected data: string[] | null; /** * Data for handling the checksum. */ protected indcheck: number[] | null; constructor(); /** * 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, 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; /** * Saves data into the classes. * * This method will save data, calculate real column number * (if -1 was selected), the real error level (if -1 was * selected)... It will add Padding to the end and generate * the error codes. * * @param data The data. */ setData(data: [number[], string[]]): void; /** * Returns the extended reprensentation of the character. * * @param val The value. * @return The representation. */ private getExtendedVersion; } export { BCGcode93 };