declare namespace ej {
export namespace barcodeGenerator {
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/barcode-base.d.ts
/**
* defines the common methods for the barcode
*/
export abstract class BarcodeBase {
abstract validateInput(char: string, characters: string): boolean | string;
abstract drawImage(canvas: HTMLCanvasElement, options: BaseAttributes[], labelPosition: number, barcodeSize: Rect, endValue: number, textRender: string): void;
abstract getDrawableSize(margin: MarginModel, widthValue: number, height: number): void;
height: string | number;
width: string | number;
margin: MarginModel;
displayText: DisplayTextModel;
value: string;
foreColor: string;
type: BarcodeType;
isSvgMode: boolean;
alignment: Alignment;
enableCheckSum: boolean;
encodingValue: DataMatrixEncoding;
size: DataMatrixSize;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/barcode-model.d.ts
/**
* Interface for a class BarcodeGenerator
*/
export interface BarcodeGeneratorModel extends base.ComponentModel{
/**
* Defines the width of the barcode model.
* ```html
*
* ```
* ```typescript
* let barcode: Barcode = new Barcode({
* width:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
*
* @default '100%'
*/
width?: string | number;
/**
* Defines the height of the barcode model.
* ```html
*
* ```
* ```typescript
* let barcode: Barcode = new Barcode({
* height:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
*
* @default '100'
*
*/
height?: string | number;
/**
* Defines the barcode rendering mode.
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
*
* @default 'SVG'
*
*/
mode?: RenderingMode;
/**
* Defines the type of barcode to be rendered.
*
* @default 'Code128'
*
*/
type?: BarcodeType;
/**
* Defines the value of the barcode to be rendered.
*
* @default undefined
*
*/
value?: string;
/**
* Defines the checksum for the barcode.
*
* @default 'true'
*
*/
enableCheckSum?: boolean;
/**
* Defines the text properties for the barcode.
*
* @default ''
*
*/
displayText?: DisplayTextModel;
/**
* Defines the margin properties for the barcode.
*
* @default ''
*
*/
margin?: MarginModel;
/**
* Defines the background color of the barcode.
*
* @default 'white'
*
*/
backgroundColor?: string;
/**
* Defines the forecolor of the barcode.
*
* @default 'black'
*
*/
foreColor?: string;
/**
* Triggers if you enter any invalid character.
* @event
*/
invalid?: base.EmitType