import { t as Bank } from "./banks-0wedgr1-.cjs"; //#region src/get-bank-by-ispb/get-bank-by-ispb.d.ts /** * Looks up a Brazilian bank by its ISPB (Identificador do Sistema de Pagamentos Brasileiro), * the 8 digit code that identifies every participant of the SPB, published by Banco Central do * Brasil in the STR (Sistema de Transferência de Reservas) participants list. Every SPB * participant has an ISPB, but this dataset only carries the institutions that also have a * COMPE code, so an ISPB whose institution has no COMPE code of its own returns `null`. * * @param {string|number} value - The bank's ISPB, with or without leading zeros. * @returns {Bank|null} A fresh copy of the matching bank, or `null` when no bank has that ISPB. * * @example * ```typescript * getBankByIspb("00000000"); // { code: "001", ispb: "00000000", name: "Banco do Brasil S.A." } * getBankByIspb(0); // { code: "001", ispb: "00000000", name: "Banco do Brasil S.A." } * getBankByIspb("60701190"); // { code: "341", ispb: "60701190", name: "ITAÚ UNIBANCO S.A." } * getBankByIspb("99999999"); // 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 getBankByIspb: (value: string | number) => Bank | null; //#endregion export type { Bank };