export interface SameLengthOptions { format?: (item: T, index: number, arr: T[]) => string; formatBack?: (item: string, index: number, arr: string[]) => B; /** * max length of string, the default value is the maximum length of string in the array */ max?: number | ((maxStrLen: number) => number); /** * placeholder string or char, the default value is `' '` */ placeholder?: string; /** * placement of string if its length is shorter than the maximum * @choice center: `['a', 'bbb']` => `[' a ', 'bbb']` * @choice left: `['a', 'bbb']` => `['a ', 'bbb']` * @choice right: `['a', 'bbb']` => `[' a', 'bbb']` */ placement?: 'center' | 'left' | 'right'; prefix?: string; suffix?: string; } export declare const SameLengthDefaultOptions: SameLengthOptions; declare const _default: (arr: T[], options?: SameLengthOptions | undefined) => B[]; export default _default;