import { Formatters, IntlFormatters, OnErrorFn } from './types'; import type { Part } from '@formatjs/intl-listformat'; export declare function formatList(opts: { locale: string; onError: OnErrorFn; }, getListFormat: Formatters['getListFormat'], values: ReadonlyArray, options: Parameters[1]): string; export declare function formatListToParts(opts: { locale: string; onError: OnErrorFn; }, getListFormat: Formatters['getListFormat'], values: ReadonlyArray, options: Parameters[1]): Part[];