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 Cst { codigo: string; descricao: string; } interface CstDataVersion { id: 'cst'; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; contagens: { icms: number; ipi: number; pis: number; cofins: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; } /** * RFB SPED CST lookup — offline embedded data from official SPED Fiscal tables. * @see http://www.sped.fazenda.gov.br/spedtabelas/AppConsulta/publico/aspx/ConsultaTabelasExternas.aspx?CodSistema=SpedFiscal */ /** Returns every embedded ICMS CST row (in-memory reference, not a copy). */ declare function getAllCstIcms(): readonly Cst[]; /** @deprecated Use {@link getAllCstIcms} instead. Removed in v2.0. */ declare function getCstIcms(): readonly Cst[]; /** Returns every embedded IPI CST row (in-memory reference, not a copy). */ declare function getAllCstIpi(): readonly Cst[]; /** @deprecated Use {@link getAllCstIpi} instead. Removed in v2.0. */ declare function getCstIpi(): readonly Cst[]; /** Returns every embedded PIS CST row (in-memory reference, not a copy). */ declare function getAllCstPis(): readonly Cst[]; /** @deprecated Use {@link getAllCstPis} instead. Removed in v2.0. */ declare function getCstPis(): readonly Cst[]; /** Returns every embedded COFINS CST row (in-memory reference, not a copy). */ declare function getAllCstCofins(): readonly Cst[]; /** @deprecated Use {@link getAllCstCofins} instead. Removed in v2.0. */ declare function getCstCofins(): readonly Cst[]; declare function lookupCstIcmsPorCodigo(codigo: string): LookupResult; declare function lookupCstIpiPorCodigo(codigo: string): LookupResult; declare function lookupCstPisPorCodigo(codigo: string): LookupResult; declare function lookupCstCofinsPorCodigo(codigo: string): LookupResult; declare function getCstIcmsPorCodigo(codigo: string): Cst | undefined; declare function getCstIpiPorCodigo(codigo: string): Cst | undefined; declare function getCstPisPorCodigo(codigo: string): Cst | undefined; declare function getCstCofinsPorCodigo(codigo: string): Cst | undefined; declare function searchCstIcms(query: string, options?: { limit?: number; }): readonly Cst[]; declare function searchCstIpi(query: string, options?: { limit?: number; }): readonly Cst[]; declare function searchCstPis(query: string, options?: { limit?: number; }): readonly Cst[]; declare function searchCstCofins(query: string, options?: { limit?: number; }): readonly Cst[]; /** * CST format + embedded SPED table validation. * @see http://www.sped.fazenda.gov.br/spedtabelas/AppConsulta/publico/aspx/ConsultaTabelasExternas.aspx?CodSistema=SpedFiscal */ type CstTax = 'icms' | 'ipi' | 'pis' | 'cofins'; declare function validateCst(raw: string, options: { tax: CstTax; }): FiscalCodeValidationResult; declare function isValidCst(raw: string, options: { tax: CstTax; }): boolean; declare const SPED_CST_CONSULTA_URL = "http://www.sped.fazenda.gov.br/spedtabelas/AppConsulta/publico/aspx/ConsultaTabelasExternas.aspx?CodSistema=SpedFiscal"; declare const CST_PIS_DOC_URL = "http://sped.rfb.gov.br/arquivo/download/1629"; declare const CST_COFINS_DOC_URL = "http://sped.rfb.gov.br/arquivo/download/1630"; declare const CST_GOLDEN_ICMS_TRIBUTADA = "00"; declare const CST_GOLDEN_ICMS_ST = "10"; declare const CST_GOLDEN_IPI_SAIDA = "50"; declare const CST_GOLDEN_IPI_ENTRADA = "00"; declare const CST_GOLDEN_PIS_TRIBUTAVEL = "01"; declare const CST_GOLDEN_PIS_ISENTA = "07"; declare const CST_GOLDEN_COFINS_TRIBUTAVEL = "01"; declare const CST_GOLDEN_COFINS_ISENTA = "07"; declare const CST_MIN_ICMS = 10; declare const CST_MAX_ICMS = 20; declare const CST_MIN_IPI = 12; declare const CST_MAX_IPI = 20; declare const CST_MIN_PIS = 30; declare const CST_MAX_PIS = 40; declare const CST_MIN_COFINS = 30; declare const CST_MAX_COFINS = 40; declare const CST_DATA_VERSION: CstDataVersion; export { CST_COFINS_DOC_URL, CST_DATA_VERSION, CST_GOLDEN_COFINS_ISENTA, CST_GOLDEN_COFINS_TRIBUTAVEL, CST_GOLDEN_ICMS_ST, CST_GOLDEN_ICMS_TRIBUTADA, CST_GOLDEN_IPI_ENTRADA, CST_GOLDEN_IPI_SAIDA, CST_GOLDEN_PIS_ISENTA, CST_GOLDEN_PIS_TRIBUTAVEL, CST_MAX_COFINS, CST_MAX_ICMS, CST_MAX_IPI, CST_MAX_PIS, CST_MIN_COFINS, CST_MIN_ICMS, CST_MIN_IPI, CST_MIN_PIS, CST_PIS_DOC_URL, type Cst, type CstDataVersion, type CstTax, SPED_CST_CONSULTA_URL, getAllCstCofins, getAllCstIcms, getAllCstIpi, getAllCstPis, getCstCofins, getCstCofinsPorCodigo, getCstIcms, getCstIcmsPorCodigo, getCstIpi, getCstIpiPorCodigo, getCstPis, getCstPisPorCodigo, isValidCst, lookupCstCofinsPorCodigo, lookupCstIcmsPorCodigo, lookupCstIpiPorCodigo, lookupCstPisPorCodigo, searchCstCofins, searchCstIcms, searchCstIpi, searchCstPis, validateCst };