zxing-wasm
Version:
ZXing-C++ WebAssembly as an ES/CJS module with types
17 lines (16 loc) • 702 B
TypeScript
export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"];
export type EanAddOnSymbol = (typeof eanAddOnSymbols)[number];
/**
* Encodes an EAN add-on symbol to its numeric representation.
*
* @param eanAddOnSymbol - The EAN add-on symbol to encode
* @returns The number representing the encoded EAN add-on symbol
*/
export declare function encodeEanAddOnSymbol(eanAddOnSymbol: EanAddOnSymbol): number;
/**
* Decodes the EAN add-on symbol corresponding to the given number.
*
* @param number - The numeric identifier of the EAN add-on symbol to decode
* @returns The decoded EAN add-on symbol
*/
export declare function decodeEanAddOnSymbol(number: number): EanAddOnSymbol;