/** * The most commonly used EAN standard is * the thirteen-digit EAN-13, while the * less commonly used 8-digit EAN-8 barcode was * introduced for use on small packages. * Also EAN/UCC-14 is used for Grouping of individual * trade items above unit level(Intermediate, Carton or Pallet). * For more info about EAN-14 checkout: https://www.gtin.info/itf-14-barcodes/ * EAN consists of: * GS1 prefix, manufacturer code, product code and check digit * Reference: https://en.wikipedia.org/wiki/International_Article_Number * Reference: https://www.gtin.info/ */ import { MessageFunctionType, Result } from '../types'; export interface IsEANErrors { TARGET_ARGUMENT_NOT_A_STRING: MessageFunctionType; } export declare const IS_EAN_ERRORS: IsEANErrors; /** * Test if string is valid EAN: * Matches EAN-8/EAN-13 regex * Has valid check digit. * * * ### Example * ``` * expect(isEAN('9421023610112').value).toBeTruthy() * ``` * * @param target The target */ export declare function isEAN(target: string): Result;