import { b as DatasetChanges, c as DatasetVerification } from './types-CnePu8im.js'; interface SelicMetaObservacao { data: string; valor: number; } interface SelicMetaResult extends SelicMetaObservacao { dataReferencia: string; isStale: boolean; warning?: string; } interface SelicHistoricoRange { from?: string; to?: string; } interface SelicLookupOptions { /** ISO date used to evaluate staleness (default: Brazil local today). */ asOfDate?: string; } interface SelicDataVersion { id: 'selic'; nome: string; fonte: string; endpoints: string[]; capturadoEm: string; atualizadoEm: string; contagens: { observacoes: number; dias: number; }; alteracoes: DatasetChanges; verificacao: DatasetVerification; documentacao: string; } /** * Bacen SELIC meta (SGS 432) — offline embedded daily series. * @see https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=json */ declare function getSelicList(): readonly SelicMetaObservacao[]; declare function pickLatestSelicMeta(items: readonly SelicMetaObservacao[]): SelicMetaObservacao | undefined; declare function getSelicMeta(options?: SelicLookupOptions): SelicMetaResult | undefined; declare function getSelicMetaPorData(isoDate: string, options?: SelicLookupOptions): SelicMetaResult | undefined; declare function getSelicHistorico(range: SelicHistoricoRange): readonly SelicMetaObservacao[]; /** * Bacen SGS série 432 — Meta Selic constants. * @see https://dadosabertos.bcb.gov.br/dataset/432-taxa-de-juros---meta-selic-definida-pelo-copom */ declare const BCB_SELIC_DATASET_URL = "https://dadosabertos.bcb.gov.br/dataset/432-taxa-de-juros---meta-selic-definida-pelo-copom"; declare const BCB_SELIC_SGS_API_URL = "https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=json"; declare const BCB_SELIC_SGS_CONSULTA_URL = "https://www3.bcb.gov.br/sgspub/consultarvalores/consultarValoresSeries.do?method=consultarGraficoPorId&hdOidSeriesSelecionadas=432"; declare const BCB_SELIC_COPOM_URL = "https://www.bcb.gov.br/controleinflacao/copom"; declare const SELIC_SGS_SERIE = 432; declare const SELIC_EMBED_CALENDAR_DAYS = 90; declare const SELIC_STALE_WARNING = "Embedded data. For real-time use @br-validators/adapters-selic"; /** Golden meta Selic 14,25% a.a. on 2026-06-18 (COPOM). */ declare const SELIC_GOLDEN_DATA_COPOM = "2026-06-18"; declare const SELIC_GOLDEN_VALOR_COPOM = 14.25; /** * SELIC embed staleness — business-day age vs Brazil local today. * @see docs/OFFICIAL-SOURCES.md#selic-meta-sgs-432 */ declare function getBrazilTodayIso(now?: Date): string; declare function subtractBusinessDays(fromIso: string, businessDays: number): string; declare function isSelicMetaStale(dataReferencia: string, asOfDate: string): boolean; declare function buildSelicMetaResult(observacao: SelicMetaObservacao, options?: SelicLookupOptions): SelicMetaResult; declare const SELIC_DATA_VERSION: SelicDataVersion; export { BCB_SELIC_COPOM_URL, BCB_SELIC_DATASET_URL, BCB_SELIC_SGS_API_URL, BCB_SELIC_SGS_CONSULTA_URL, SELIC_DATA_VERSION, SELIC_EMBED_CALENDAR_DAYS, SELIC_GOLDEN_DATA_COPOM, SELIC_GOLDEN_VALOR_COPOM, SELIC_SGS_SERIE, SELIC_STALE_WARNING, type SelicDataVersion, type SelicHistoricoRange, type SelicLookupOptions, type SelicMetaObservacao, type SelicMetaResult, buildSelicMetaResult, getBrazilTodayIso, getSelicHistorico, getSelicList, getSelicMeta, getSelicMetaPorData, isSelicMetaStale, pickLatestSelicMeta, subtractBusinessDays };