import { t as Bank } from "./banks-0wedgr1-.js"; //#region src/get-bank-by-code/get-bank-by-code.d.ts /** * Looks up a Brazilian bank by its compensation code (COMPE), published by Banco Central do * Brasil in the STR (Sistema de TransferĂȘncia de Reservas) participants list. * * @param {string|number} code - The bank's COMPE code, with or without leading zeros. * @returns {Bank|null} A fresh copy of the matching bank, or `null` when no bank has that code. * * @example * ```typescript * getBankByCode("001"); // { code: "001", ispb: "00000000", name: "Banco do Brasil S.A." } * getBankByCode(1); // { code: "001", ispb: "00000000", name: "Banco do Brasil S.A." } * getBankByCode("999"); // null * ``` * * @see Official: https://www.bcb.gov.br/content/estabilidadefinanceira/str1/ParticipantesSTR.csv * @see Based on: https://brasilapi.com.br/api/banks/v1 * Fallback source used by the dataset generator (`scripts/banks.ts`) when the Bacen CSV request fails. */ export declare const getBankByCode: (code: string | number) => Bank | null; //#endregion export type { Bank };