import { Barcode1D, Label, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class Upce extends Barcode1D { private readonly codeParity; /** * The UPCE value. */ protected upce: string | null; /** * The label on the left. */ protected labelLeft: Label | null; /** * The label on the center. */ protected labelCenter: Label | null; /** * The label on the right. */ protected labelRight: Label | null; constructor(); /** * 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[]; /** * 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; /** * Overloaded method to calculate checksum. */ protected calculateChecksum(): void; /** * Overloaded method to display the checksum. * * @return The checksum value. */ protected processChecksum(): string | null; /** * Draws the extended bars on the image. * * @param im The surface. * @param plus How much more we should display the bars. */ protected drawExtendedBars(im: 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 { Upce };