import { a as LookupResult } from './lookup-result-DXCBA61F.js'; import { b as DatasetChanges, c as DatasetVerification } from './types-CnePu8im.js'; import { a as FiscalCodeValidationResult } from './fiscal-code-result-CtEVpP2M.js'; interface Ncm { codigo: string; descricao: string; } interface NcmDataVersion { id: 'ncm'; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; contagens: { ncm: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; } /** * NCM lookup — offline embedded data from official Siscomex nomenclature JSON. * @see https://www.gov.br/receitafederal/pt-br/assuntos/aduana-e-comercio-exterior/classificacao-fiscal-de-mercadorias/download-ncm-nomenclatura-comum-do-mercosul */ /** Returns every embedded NCM leaf code (in-memory reference, not a copy). */ declare function getAllNcm(): readonly Ncm[]; /** @deprecated Use {@link getAllNcm} instead. Removed in v2.0. */ declare function getNcms(): readonly Ncm[]; declare function lookupNcmPorCodigo(codigo: string): LookupResult; declare function getNcmPorCodigo(codigo: string): Ncm | undefined; declare function searchNcm(query: string, options?: { limit?: number; }): readonly Ncm[]; /** * NCM format + embedded table validation. * @see https://www.gov.br/receitafederal/pt-br/assuntos/aduana-e-comercio-exterior/classificacao-fiscal-de-mercadorias */ /** Official NCM display mask — XXXX.XX.XX (8 digits). */ declare function formatNcmDisplay(codigo: string): string; declare function validateNcm(raw: string): FiscalCodeValidationResult; declare function isValidNcm(raw: string): boolean; /** Prefer `?perfil=PUBLICO` — bare path only returns HTTP 307. */ declare const NCM_JSON_URL = "https://portalunico.siscomex.gov.br/classif/api/publico/nomenclatura/download/json?perfil=PUBLICO"; declare const NCM_GOLDEN_CAVALOS_REPRODUTORES = "01012100"; declare const NCM_GOLDEN_SOJA_SEMENTES = "12011000"; declare const NCM_MIN_LEAF_CODES = 10000; declare const NCM_MAX_LEAF_CODES = 11500; declare const NCM_DATA_VERSION: NcmDataVersion; export { NCM_DATA_VERSION, NCM_GOLDEN_CAVALOS_REPRODUTORES, NCM_GOLDEN_SOJA_SEMENTES, NCM_JSON_URL, NCM_MAX_LEAF_CODES, NCM_MIN_LEAF_CODES, type Ncm, type NcmDataVersion, formatNcmDisplay, getAllNcm, getNcmPorCodigo, getNcms, isValidNcm, lookupNcmPorCodigo, searchNcm, validateNcm };