UNPKG

@etsoo/appscript

Version:

Applications shared TypeScript framework

31 lines (30 loc) 909 B
import { ListType, ListType1 } from "@etsoo/shared"; import { CultureGridItem } from "./CultureItem"; /** * Business utils */ export declare namespace BusinessUtils { /** * Format avatar title * @param title Title * @param maxChars Max characters * @param defaultTitle Default title * @returns Result */ function formatAvatarTitle(title?: string, maxChars?: number, defaultTitle?: string): string; /** * Format cultures for data * @param cultures Supported cultures * @param data Data to format */ function formatCultues(cultures: ListType1[], data: { cultures?: CultureGridItem[]; }): void; /** * Get 12-month items * @param monthLabels Month labels * @param startMonth Start month, 0 as Jan. * @returns 12 months */ function getMonths(monthLabels: string[], startMonth?: number): ListType[]; }