"use strict";
/**
 * Converts string to Sentence case.
 * Splits on camelCase, PascalCase, dots, underscores, hyphens, and non-alphanumeric characters.
 * Drop-in replacement for the sentence-case package.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = sentenceCase;
const tslib_1 = require("tslib");
const words_1 = tslib_1.__importDefault(require("./words"));
function sentenceCase(input) {
    const parts = (0, words_1.default)(input);
    if (parts.length === 0) {
        return '';
    }
    return parts
        .map((w, i) => (i === 0 ? w.charAt(0).toUpperCase() + w.slice(1).toLowerCase() : w.toLowerCase()))
        .join(' ');
}
