import { k as EanValidationResult, F as FormatResult } from './validation-result-D4Wrxl7j.js'; export { D as DocumentFormat, E as Ean, V as ValidationErrorCode } from './validation-result-D4Wrxl7j.js'; /** GS1 EAN/UPC — official reference for check-digit algorithm. */ declare const EAN_OFFICIAL_SOURCE_URL: "https://www.gs1.org/standards/barcodes/ean-upc"; declare const EAN_8_LENGTH: 8; declare const EAN_13_LENGTH: 13; /** Golden EAN-13 from GS1 examples (modulo-10 weights 1/3). */ declare const EAN_GOLDEN_13: "4006381333931"; declare const EAN_GOLDEN_13_MASKED: "4 006381 333931"; /** Golden EAN-8 from GS1 examples. */ declare const EAN_GOLDEN_8: "96385074"; declare const EAN_GOLDEN_8_MASKED: "9638 5074"; type EanFormat = 'ean-8' | 'ean-13'; /** Best-effort format detection from stripped length (8 or 13 digits only). */ declare function detectEanFormat(input: string): EanFormat | null; /** GS1 human-readable grouping — EAN-13: 1-6-6, EAN-8: 4-4. */ declare function applyEanMask(canonical: string): string; /** * GS1 modulo-10 check digit — alternating weights 1 and 3 from the left (excluding check digit). * @see https://www.gs1.org/standards/barcodes/ean-upc */ declare function computeGs1Modulo10Sum(digitsWithoutCheck: string): number; declare function computeGs1Modulo10CheckDigit(digitsWithoutCheck: string): number; /** Returns true when the full digit string passes GS1 modulo-10. */ declare function passesGs1Modulo10(digits: string): boolean; declare function isValidGs1Modulo10(input: string): boolean; declare function isValidEan(input: string): boolean; declare function validateEan(input: string): EanValidationResult; /** * Strip EAN mask — digits only. * @see https://www.gs1.org/standards/barcodes/ean-upc */ declare function stripEan(input: string): string; declare function formatEan(input: string): FormatResult; export { EAN_13_LENGTH, EAN_8_LENGTH, EAN_GOLDEN_13, EAN_GOLDEN_13_MASKED, EAN_GOLDEN_8, EAN_GOLDEN_8_MASKED, EAN_OFFICIAL_SOURCE_URL, type EanFormat, EanValidationResult, FormatResult, applyEanMask, computeGs1Modulo10CheckDigit, computeGs1Modulo10Sum, detectEanFormat, formatEan, isValidEan, isValidGs1Modulo10, passesGs1Modulo10, stripEan, validateEan };