import { PropertyTranslationRequest } from '../interfaces/property-translation.request'; import { PropertyTranslationResponse } from '../interfaces/property-translation.response'; import { PropertyTranslation } from './property-translation.model'; export declare class TranslatableProperty { /** * Default language * * @memberof TranslatableProperty */ readonly defaultLanguage = "en"; /** * Current translations. * * @private * @type {PropertyTranslation[]} * @memberof TranslatableProperty */ private translations; /** * Gets the translation according to the default language. First, it that does not exists. * * @readonly * @type {string} * @memberof TranslatableProperty */ readonly default: string; /** * Gets the translation by locale. * * @param {string} locale * @returns {(string | undefined)} * @memberof TranslatableProperty */ get(locale: string): string | undefined; /** * Sets a translation. * * @param {string} locale * @param {string} value * @memberof TranslatableProperty */ set(locale: string, value: string): void; /** * Get the values in all languages. * * @returns {PropertyTranslation[]} * @memberof TranslatableProperty */ getAll(): PropertyTranslation[]; /** * Fills the x-form-data, with the giwen namespace. This returns the new FormData! * * @param {string} namespace * @param {FormData} formData * @returns {FormData} * @memberof TranslatableProperty */ fillFormData(namespace: string, formData: FormData): FormData; /** * Loads the translations from response. * * @param {(PropertyTranslationResponse[] | string)} response * @memberof TranslatableProperty */ loadTranslations(response: PropertyTranslationResponse[] | string): void; /** * Generates the request. * * @returns {PropertyTranslationRequest[]} * @memberof TranslatableProperty */ toRequest(): PropertyTranslationRequest[]; }