UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

18 lines (17 loc) 786 B
/** * Bank Account Number formatter. * * Supports Norwegian BBAN, Swedish BBAN, Swedish Bankgiro, * Swedish Plusgiro, and IBAN formats. */ import type { NumberFormatValue, FormattedParts } from './types'; export type BankAccountType = 'norwegianBban' | 'swedishBban' | 'swedishBankgiro' | 'swedishPlusgiro' | 'iban'; /** * Format a bank account number into display and aria strings. * * @param number the bank account number value * @param bankAccountType the type of bank account number * @returns An object with `number` (display) and `aria` strings */ export declare const formatBankAccountNumberByType: (number: NumberFormatValue, bankAccountType?: BankAccountType) => FormattedParts; export declare const formatBankAccountNumber: import("./types").NumberFormatFunction;