/** * Utilities for rendering lists to strings/prompts. */ export declare namespace ListFormatting { /** * Format a list with commas and a joiner word. * * Example: `formatList(['a', 'b', 'c'], 'and or') -> 'a, b, and or c'` * * This can mostly be replaced with Intl.ListFormat(style:'long', ..) once it is implemented for NodeJS. * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat * * @param arr - Array * @param joiner - Joiner */ function format(arr: string[], joiner?: string): string; } //# sourceMappingURL=ListFormat.d.ts.map