import type { TranslationDataset, TranslationLocalizedEntries, TranslationPluralization } from './definitions.js'; import type { Locale } from './locales/index.js'; /** * A builder class for constructing translation datasets. */ export declare class DatasetBuilder { private readonly dataset; constructor(); /** * Add a translation to a translation entry. */ addTranslation(key: string, translations: Partial): this; /** * Add a singular translation to a translation entry. */ addTranslationForLocale(key: string, locale: Locale, value: string): this; /** * Add plural forms to a translation entry. */ addPluralEntry(key: string, pluralForms: TranslationPluralization | undefined): this; /** * Add a description to a translation entry. */ addDescription(key: string, description: string | undefined | null): this; /** * Add tags to a translation entry. */ addTags(key: string, tags: string[] | undefined): this; /** * Merge another dataset into this builder. */ merge(otherDataset: TranslationDataset): this; private ensureExistence; build(): TranslationDataset; }