import { BCGBarcode1D, BCGLabel, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class BCGean13 extends BCGBarcode1D { /** * Holds the data about the code parity. */ protected codeParity: number[][]; /** * The label on the left. */ protected labelLeft: BCGLabel | null; /** * The label on the left center. */ protected labelCenter1: BCGLabel | null; /** * The label on the right center. */ protected labelCenter2: BCGLabel | null; /** * Indicates if we align the default labels. */ protected alignLabel: boolean; constructor(); /** * Aligns the default label. * * @param align Aligns the label. */ alignDefaultLabel(align: boolean): 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]; /** * Adds the default label. */ protected addDefaultLabel(): void; /** * Checks if the default ean label is enabled. * * @return True if default label is enabled. */ protected isDefaultEanLabelEnabled(): boolean; /** * Validates the input. */ protected validate(): void; /** * Check chars allowed. */ protected checkCharsAllowed(): void; /** * Check correct length. */ protected checkCorrectLength(): void; /** * Overloaded method to calculate checksum. */ _calculateChecksum(): void; /** * Overloaded method to display the checksum. * * @return The checksum value. */ protected processChecksum(): string | null; /** * Draws the bars. * * @param image The surface. */ drawBars(image: draw.Surface): void; /** * Draws the extended bars on the image. * * @param image The surface. * @param plus How much more we should display the bars. */ protected drawExtendedBars(image: draw.Surface, plus: number): void; /** * Inverses the string when the inverse parameter is equal to 1. * * @param text The text. * @param inverse The inverse. * @return string The reversed string. */ private static inverse; } export { BCGean13 };