zxing-wasm
Version:
ZXing-C++ WebAssembly as an ES/CJS module with types
19 lines (18 loc) • 845 B
TypeScript
export declare const EAN_ADD_ON_SYMBOLS: readonly ["Ignore", "Read", "Require"];
/** @deprecated Use {@link EAN_ADD_ON_SYMBOLS} instead. */
export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"];
export type EanAddOnSymbol = (typeof EAN_ADD_ON_SYMBOLS)[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;