UNPKG

zen-digital-utils

Version:

Zen Utils is a collection of utility functions to simplify and enhance your development workflow. This project aims to provide reusable and efficient utilities for common tasks.

39 lines (31 loc) 1.89 kB
declare function hideScroll(isOpen: boolean): void; /** * Interface representing a Brazilian state with its code and name */ interface BrazilianState { /** Two-letter state code (e.g., 'SP', 'RJ') */ value: string; /** Full state name (e.g., 'São Paulo', 'Rio de Janeiro') */ label: string; } declare const brazilianStates: BrazilianState[]; declare function formattedDate(thisDate: string): string; declare function formatBirthdate(value: string): string; declare function formatDateTime(dateTimeString: string): string; declare function formatPercent(value: number | string): string; declare function formatFullName(value: string): string; declare function formatTextOnly(value: string): string; declare function formatZipCode(value: string): string; declare function capitalizeText(text: string): string; declare function getAcronym(fullName: string): string; declare function formatCurrencyInput(value: string): string; declare function formatCurrency(value: number | string): string; declare function parseBrazilianCurrency(str: string): number; declare function formatPhoneNumberForWhatsApp(value: string): string; declare function formatNumber(value: string): string; declare function formatPhoneNumber(value: string): string; declare function formatCountBankNumber(value: string): string; declare function formatBranchNumber(value: string): string; declare function formatBranchNumberWithDefault(value: string): string; declare function formatCpf(value: string): string; export { brazilianStates, capitalizeText, formatBirthdate, formatBranchNumber, formatBranchNumberWithDefault, formatCountBankNumber, formatCpf, formatCurrency, formatCurrencyInput, formatDateTime, formatFullName, formatNumber, formatPercent, formatPhoneNumber, formatPhoneNumberForWhatsApp, formatTextOnly, formatZipCode, formattedDate, getAcronym, hideScroll, parseBrazilianCurrency };