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'; type Csosn = { codigo: string; descricao: string; }; type CsosnDataVersion = { id: string; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; contagens: { csosn: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; }; /** * CONFAZ CSOSN lookup — offline embedded data from Ajuste SINIEF 03/10. * @see https://www.confaz.fazenda.gov.br/legislacao/ajustes/sinief/a03_10 */ /** Returns every embedded CSOSN row (in-memory reference, not a copy). */ declare function getAllCsosn(): readonly Csosn[]; declare function lookupCsosnPorCodigo(codigo: string): LookupResult; declare function getCsosnPorCodigo(codigo: string): Csosn | undefined; declare function searchCsosn(query: string, options?: { limit?: number; }): readonly Csosn[]; /** * CSOSN format + embedded table validation. * @see https://www.confaz.fazenda.gov.br/legislacao/ajustes/sinief/a03_10 */ declare function validateCsosn(raw: string): FiscalCodeValidationResult; declare function isValidCsosn(raw: string): boolean; declare const CSOSN_SINIEF_URL = "https://www.confaz.fazenda.gov.br/legislacao/ajustes/sinief/a03_10"; declare const CSOSN_GOLDEN_TRIBUTADA_COM_CREDITO = "101"; declare const CSOSN_GOLDEN_SEM_CREDITO = "102"; declare const CSOSN_GOLDEN_ST = "201"; declare const CSOSN_GOLDEN_ICMS_ANTERIOR = "500"; declare const CSOSN_CODE_COUNT = 10; declare const CSOSN_DATA_VERSION: CsosnDataVersion; export { CSOSN_CODE_COUNT, CSOSN_DATA_VERSION, CSOSN_GOLDEN_ICMS_ANTERIOR, CSOSN_GOLDEN_SEM_CREDITO, CSOSN_GOLDEN_ST, CSOSN_GOLDEN_TRIBUTADA_COM_CREDITO, CSOSN_SINIEF_URL, type Csosn, type CsosnDataVersion, getAllCsosn, getCsosnPorCodigo, isValidCsosn, lookupCsosnPorCodigo, searchCsosn, validateCsosn };