import { b as DatasetChanges, c as DatasetVerification } from './types-CnePu8im.js'; interface IssMunicipalRow { codigoIbge: number; nome: string; uf: string; aliquotaMin: number; aliquotaMax: number; leiUrl: string; capturadoEm: string; estimativa: boolean; pibRank: number | null; } /** Provenance of the embedded ISS alíquota row — do not use `'estimativa'` or `'munic-ibge'` for NFSe emission. */ type IssMunicipalFonte = 'oficial' | 'munic-ibge' | 'estimativa'; interface IssMunicipalResult extends IssMunicipalRow { /** * `'oficial'` — capital seed with verified municipal legislation URL. * `'munic-ibge'` — MUNIC/IBGE municipal profile fallback (LC 116 legal band; not exact municipal rate). * `'estimativa'` — LC 116 Art. 8 band fallback; not verified municipal legislation. */ fonte: IssMunicipalFonte; warning: string; } interface IssMunicipalDataVersion { id: 'iss-municipal'; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; estimativa: boolean; contagens: { municipios: number; capitais: number; estimativaRows: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; } /** * Municipal ISS alíquota lookup — partial embed (capitals + top PIB ~500). * @see docs/OFFICIAL-SOURCES.md#iss-municipal */ /** Returns every embedded ISS municipal row (in-memory reference, not a copy). */ declare function getAllIssMunicipal(): readonly IssMunicipalRow[]; /** Returns UFs present in the partial embed, sorted alphabetically. */ declare function getIssMunicipalUfsDisponiveis(): readonly string[]; declare function getIssMunicipalPorIbge(codigo: number | string): IssMunicipalResult | undefined; declare function getIssMunicipalPorUf(uf: string): readonly IssMunicipalResult[]; declare function getIssMunicipalPorUfMunicipio(uf: string, nome: string): IssMunicipalResult | undefined; declare function searchIssMunicipal(query: string, options?: { uf?: string; limit?: number; }): readonly IssMunicipalResult[]; /** Compact MUNIC/IBGE fallback row — municipalities outside the 500-row partial embed. */ interface IssMunicIbgeRow { codigoIbge: number; nome: string; uf: string; aliquotaMin: number; aliquotaMax: number; municAnoPesquisa: number; } interface IssMunicIbgeDataVersion { id: 'iss-munic-ibge'; municAnoPesquisa: number; municBaseUrl: string; municPesquisaUrl: string; issSidraTableId: number | null; nota: string; capturadoEm: string; contagens: { municipios: number; }; documentacao: string; } /** * ISS municipal cascade lookup — 500 embed → MUNIC/IBGE → LC 116. * @see docs/OFFICIAL-SOURCES.md#iss-munic-ibge */ /** Returns MUNIC/IBGE fallback row for IBGE codes outside the 500-row partial embed. */ declare function getIssMunicIbgePorIbge(codigo: number | string): IssMunicipalResult | undefined; /** * Cascade lookup: partial 500 embed → MUNIC/IBGE fallback → LC 116 generic band. * Returns `undefined` only for invalid IBGE input or unknown municipality code. */ declare function lookupIssMunicipalPorIbge(codigo: number | string): IssMunicipalResult | undefined; /** LC 116 fallback when municipality exists in IBGE localities but not yet in MUNIC embed. */ declare function resolveIbgeLc116Fallback(normalizedIbge: number): IssMunicipalResult | undefined; /** Returns every MUNIC/IBGE fallback row (in-memory reference, not a copy). */ declare function getAllIssMunicIbge(): readonly IssMunicIbgeRow[]; /** Count of municipalities in the MUNIC/IBGE fallback embed. */ declare function getIssMunicIbgeCount(): number; declare function resolveIssMunicipalFonte(estimativa: boolean): IssMunicipalFonte; declare function buildIssMunicipalResult(row: IssMunicipalRow): IssMunicipalResult; declare function buildIssMunicIbgeResult(row: IssMunicIbgeRow): IssMunicipalResult; type Lc116EstimativaInput = Omit; declare function buildLc116EstimativaResult(row: Lc116EstimativaInput): IssMunicipalResult; /** * Municipal ISS alíquota constants — partial embed (estimation only). * @see https://www.planalto.gov.br/ccivil_03/leis/lcp/lcp116.htm#art8 */ declare const PLANALTO_LC116_URL = "https://www.planalto.gov.br/ccivil_03/leis/lcp/lcp116.htm"; declare const PLANALTO_LC116_ART8_URL = "https://www.planalto.gov.br/ccivil_03/leis/lcp/lcp116.htm#art8"; declare const IBGE_PIB_MUNICIPAL_URL = "https://www.ibge.gov.br/estatisticas/economicas/contas-nacionais/9088-produto-interno-bruto-dos-municipios.html"; declare const IBGE_MUNICIPIO_CODES_URL = "https://www.ibge.gov.br/explica/codigos-dos-municipios.php"; declare const CNM_LEGISLACAO_URL = "https://www.cnm.org.br/"; declare const NFSE_NACIONAL_URL = "https://www.gov.br/nfse/pt-br"; declare const ISS_MUNICIPAL_TARGET_COUNT = 500; declare const ISS_MUNICIPAL_CAPITAL_COUNT = 27; declare const ISS_MUNICIPAL_LC116_MIN = 2; declare const ISS_MUNICIPAL_LC116_MAX = 5; /** Golden municipality — São Paulo capital (IBGE 3550308). */ declare const ISS_MUNICIPAL_GOLDEN_SAO_PAULO = 3550308; /** Golden municipality — Rio de Janeiro capital (IBGE 3304557). */ declare const ISS_MUNICIPAL_GOLDEN_RIO = 3304557; /** Golden municipality — Belo Horizonte capital (IBGE 3106200). */ declare const ISS_MUNICIPAL_GOLDEN_BELO_HORIZONTE = 3106200; /** Golden municipality — Campinas high-PIB non-capital (IBGE 3509502). */ declare const ISS_MUNICIPAL_GOLDEN_CAMPINAS = 3509502; declare const IBGE_SIDRA_PIB_URL = "https://apisidra.ibge.gov.br/values/t/5938/n6/all/v/37/p/2022"; declare const IBGE_MUNIC_PESQUISA_URL = "https://www.ibge.gov.br/estatisticas/economicas/contabilidade/9078-pesquisa-de-informacoes-municipais.html"; declare const IBGE_MUNIC_BASE_2024_URL = "https://ftp.ibge.gov.br/Perfil_Municipios/2024/Base_de_Dados/Base_MUNIC_2024_20251107.xlsx"; /** Golden municipality — Acrelândia/AC (not in 500-row embed; MUNIC fallback). */ declare const ISS_MUNIC_GOLDEN_ACRELANDIA = 1200013; declare const ISS_MUNICIPAL_ESTIMATION_WARNING: string; declare const ISS_MUNIC_IBGE_WARNING: string; declare const ISS_MUNICIPAL_METADATA_ESTIMATIVA = true; declare const ISS_MUNICIPAL_DATA_VERSION: IssMunicipalDataVersion; declare const ISS_MUNIC_IBGE_DATA_VERSION: IssMunicIbgeDataVersion; export { CNM_LEGISLACAO_URL, IBGE_MUNICIPIO_CODES_URL, IBGE_MUNIC_BASE_2024_URL, IBGE_MUNIC_PESQUISA_URL, IBGE_PIB_MUNICIPAL_URL, IBGE_SIDRA_PIB_URL, ISS_MUNICIPAL_CAPITAL_COUNT, ISS_MUNICIPAL_DATA_VERSION, ISS_MUNICIPAL_ESTIMATION_WARNING, ISS_MUNICIPAL_GOLDEN_BELO_HORIZONTE, ISS_MUNICIPAL_GOLDEN_CAMPINAS, ISS_MUNICIPAL_GOLDEN_RIO, ISS_MUNICIPAL_GOLDEN_SAO_PAULO, ISS_MUNICIPAL_LC116_MAX, ISS_MUNICIPAL_LC116_MIN, ISS_MUNICIPAL_METADATA_ESTIMATIVA, ISS_MUNICIPAL_TARGET_COUNT, ISS_MUNIC_GOLDEN_ACRELANDIA, ISS_MUNIC_IBGE_DATA_VERSION, ISS_MUNIC_IBGE_WARNING, type IssMunicIbgeDataVersion, type IssMunicIbgeRow, type IssMunicipalDataVersion, type IssMunicipalFonte, type IssMunicipalResult, type IssMunicipalRow, NFSE_NACIONAL_URL, PLANALTO_LC116_ART8_URL, PLANALTO_LC116_URL, buildIssMunicIbgeResult, buildIssMunicipalResult, buildLc116EstimativaResult, getAllIssMunicIbge, getAllIssMunicipal, getIssMunicIbgeCount, getIssMunicIbgePorIbge, getIssMunicipalPorIbge, getIssMunicipalPorUf, getIssMunicipalPorUfMunicipio, getIssMunicipalUfsDisponiveis, lookupIssMunicipalPorIbge, resolveIbgeLc116Fallback, resolveIssMunicipalFonte, searchIssMunicipal };