/** * Copyright 2026 - present Nazmul Hassan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { E as Numeric } from "./index-Dx3yeNwR.mjs"; //#region src/types/pluralizer.d.ts /** A pair of RegExp and replacement for pluralization rules */ type PluralizeRule = [RegExp, string]; /** * A map of irregular singular to plural forms. * Used for handling exceptions in pluralization. */ type IrregularMap = Record; /** * Options for pluralize method. */ interface PluralizeOptions { /** * The count to determine singular or plural form. Either number or numeric string. * If not provided, bypass the check and pluralize the word anyways. */ count?: Numeric; /** * Whether to include the count in the output. Depends on the `count` value. * If true, the output will be in the format "2 Categories". * If false, it will just return the pluralized word. */ inclusive?: boolean; } //#endregion export { PluralizeOptions as n, PluralizeRule as r, IrregularMap as t };