//#region src/is-valid-boleto/is-valid-boleto.d.ts /** * Validates if a Brazilian bank slip (boleto) number is valid. * * Supports the 47 digit "cobrança bancária" linha digitável and, additionally, the * "arrecadação" (convênio/tributos) bank slip: 48 digit linha digitável or 44 digit * barcode, both starting with `8`. * * One leniency is kept from 2.3.0: the código de moeda in position 4 of the cobrança bancária * barcode is not checked, although Carta-Circular BCB nº 2.926/2000 fixes it at `9` (real), so * a slip carrying any other moeda digit still validates. * * @param {string} value - The bank slip number to validate. * @returns {boolean} True if the bank slip number is valid, false otherwise. * * @example * ```typescript * isValidBoleto("00190000090114971860168524522114675860000102656"); // true * isValidBoleto("0019000009 01149.718601 68524.522114 6 75860000102656"); // true * isValidBoleto("846100000005246100291102005460339004695895061080"); // true (arrecadação) * ``` * * Carta-Circular BCB nº 2.926/2000 specifies the linha digitável fields and the módulo 11 * check digit (using 1 for remainders 0, 10 and 1) of the 47 digit cobrança bancária slip, * including the position of the fator de vencimento field. The FEBRABAN "Layout Padrão de * Arrecadação/Recebimento com Utilização do Código de Barras" and the FEBRABAN layout index * cover the arrecadação slip. * * @see Official: https://www.bcb.gov.br/pre/normativos/c_circ/2000/pdf/c_circ_2926_v1_O.pdf * @see Official: https://cmsarquivos.febraban.org.br/Arquivos/documentos/PDF/Layout%20-%20C%C3%B3digo%20de%20Barras%20-%20Vers%C3%A3o%208%20-%2011_05_2026.pdf * @see Official: https://portal.febraban.org.br/pagina/3425/33/pt-br/layout-febraban */ export declare const isValidBoleto: (value: string) => boolean; //#endregion