import { b as DatasetChanges, c as DatasetVerification } from './types-CnePu8im.js'; interface PtaxCotacao { moeda: string; data: string; paridadeCompra: number; paridadeVenda: number; cotacaoCompra: number; cotacaoVenda: number; dataHoraCotacao: string; tipoBoletim: 'Fechamento PTAX'; } interface PtaxCotacaoResult extends PtaxCotacao { dataReferencia: string; isStale: boolean; warning?: string; } interface PtaxLookupOptions { /** ISO date used to evaluate staleness (default: Brazil local today). */ asOfDate?: string; } interface PtaxHistoricoOptions extends PtaxLookupOptions { /** Inclusive start date — ISO `YYYY-MM-DD` or Bacen `MM-DD-YYYY`. */ desde: string; /** Inclusive end date — ISO `YYYY-MM-DD` or Bacen `MM-DD-YYYY`. */ ate: string; } interface PtaxDataVersion { id: 'ptax'; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; janelaDiasUteis: number; contagens: { cotacoes: number; moedas: number; diasUteis: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; } /** * Bacen PTAX Fechamento — offline embedded exchange rates. * @see https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/swagger-ui3 */ declare function pickLatestPtaxCotacao(items: readonly PtaxCotacao[], moeda: string): PtaxCotacao | undefined; declare function getPtaxList(): readonly PtaxCotacao[]; declare function getPtaxCotacoesPorMoeda(moeda: string): readonly PtaxCotacao[]; declare function getPtaxCotacao(moeda: string, data?: string, options?: PtaxLookupOptions): PtaxCotacaoResult | undefined; declare function getPtaxUltimoDiaUtil(moeda: string, options?: PtaxLookupOptions): PtaxCotacaoResult | undefined; declare function getPtaxHistorico(moeda: string, options: PtaxHistoricoOptions): readonly PtaxCotacaoResult[]; declare const BACEN_PTAX_SWAGGER_URL = "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/swagger-ui3"; declare const BACEN_PTAX_COTACAO_DIA_URL = "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/CotacaoMoedaDia(moeda=@moeda,dataCotacao=@dataCotacao)"; declare const BACEN_PTAX_COTACAO_PERIODO_URL = "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/CotacaoMoedaPeriodo(moeda=@moeda,dataInicial=@dataInicial,dataFinalCotacao=@dataFinalCotacao)"; declare const PTAX_GOLDEN_USD = "USD"; declare const PTAX_GOLDEN_EUR = "EUR"; declare const PTAX_MIN_RECORDS = 600; declare const PTAX_MAX_RECORDS = 1000; declare const PTAX_MIN_MOEDAS = 10; declare const PTAX_MAX_MOEDAS = 10; declare const PTAX_STALE_WARNING = "Embedded data. For real-time use @br-validators/adapters-ptax"; declare const PTAX_EMBED_BUSINESS_DAYS = 90; /** * PTAX embed staleness — business-day age vs Brazil local today. * @see docs/OFFICIAL-SOURCES.md#ptax-cotacoes */ declare function isBrazilBusinessDay(isoDate: string): boolean; declare function getBrazilTodayIso(now?: Date): string; declare function subtractBusinessDays(fromIso: string, businessDays: number): string; declare function isPtaxCotacaoStale(dataReferencia: string, asOfDate: string): boolean; declare function buildPtaxCotacaoResult(cotacao: PtaxCotacao, options?: PtaxLookupOptions): PtaxCotacaoResult; declare const PTAX_DATA_VERSION: PtaxDataVersion; export { BACEN_PTAX_COTACAO_DIA_URL, BACEN_PTAX_COTACAO_PERIODO_URL, BACEN_PTAX_SWAGGER_URL, PTAX_DATA_VERSION, PTAX_EMBED_BUSINESS_DAYS, PTAX_GOLDEN_EUR, PTAX_GOLDEN_USD, PTAX_MAX_MOEDAS, PTAX_MAX_RECORDS, PTAX_MIN_MOEDAS, PTAX_MIN_RECORDS, PTAX_STALE_WARNING, type PtaxCotacao, type PtaxCotacaoResult, type PtaxDataVersion, type PtaxHistoricoOptions, type PtaxLookupOptions, buildPtaxCotacaoResult, getBrazilTodayIso, getPtaxCotacao, getPtaxCotacoesPorMoeda, getPtaxHistorico, getPtaxList, getPtaxUltimoDiaUtil, isBrazilBusinessDay, isPtaxCotacaoStale, pickLatestPtaxCotacao, subtractBusinessDays };