'use strict';

var DateLib = require('../classes/DateLib.cjs');

/**
 * Format the caption of the month.
 *
 * @defaultValue `LLLL y` (e.g. "November 2022")
 * @group Formatters
 * @see https://daypicker.dev/docs/translation#custom-formatters
 */
function formatCaption(month, options, dateLib) {
    return (dateLib ?? new DateLib.DateLib(options)).format(month, "LLLL y");
}
/**
 * @private
 * @deprecated Use {@link formatCaption} instead.
 * @group Formatters
 */
const formatMonthCaption = formatCaption;

exports.formatCaption = formatCaption;
exports.formatMonthCaption = formatMonthCaption;
//# sourceMappingURL=formatCaption.cjs.map
