import { BCGBarcode1D, draw } from 'barcode-bakery-common'; /** * Constructor. */ declare class BCGcodabar extends BCGBarcode1D { constructor(); /** * Parses the text before displaying it. * * @param mixed 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; } export { BCGcodabar };