/** * @file Private internals for `arrays/*` modules — cached `Intl.ListFormat` * instances for conjunction (and) and disjunction (or) joins. Constructed * lazily because `new Intl.ListFormat(...)` is a measurable startup cost. */ /** * Get a cached Intl.ListFormat instance for conjunction (and) formatting. * * Creates a singleton formatter for English "and" lists using the long style. * The formatter is lazily initialized on first use and reused for performance. * * @private * * @example * ;```ts * const formatter = getConjunctionFormatter() * formatter.format(['apple', 'banana', 'cherry']) * // Returns: "apple, banana, and cherry" * ``` * * @returns Cached Intl.ListFormat instance configured for conjunction * formatting. */ export declare function getConjunctionFormatter(): Intl.ListFormat; /** * Get a cached Intl.ListFormat instance for disjunction (or) formatting. * * Creates a singleton formatter for English "or" lists using the long style. * The formatter is lazily initialized on first use and reused for performance. * * @private * * @example * ;```ts * const formatter = getDisjunctionFormatter() * formatter.format(['red', 'blue', 'green']) * // Returns: "red, blue, or green" * ``` * * @returns Cached Intl.ListFormat instance configured for disjunction * formatting. */ export declare function getDisjunctionFormatter(): Intl.ListFormat;