import ITranslation from '../Interfaces/Translation'; import Space from '../lib/Space'; import ILang from './string'; import { CustomPaymentTypeEnum, PaymentTypeEnum } from '../Interfaces/Cart'; export declare const getPrincipalWord: (dict: ITranslation[] | string, space?: Space) => string; export declare const _t: (dict: ITranslation[], space?: Space) => string; export declare const getLanguageDictFromString: (aString: string, allLangsSpace: any[]) => { lang: string; value: string; }[]; export declare const getLocaleOfDictionnary: (dict: ITranslation[] | string, localeToCheck?: string) => string; /** * Get translated string for a given locale and dictionary * @param dict - The ILang dictionary to check. Can also be a string. * @param locale - Optionnal. Defaults to 'fr' * @param replaceValue - Optionnal. Object of keys to find in translated string and replace with provided values. Keys in dictionary strings must be between curly brackets `{...}`. Values provided can be either type string or number, and will be converted to string in rendered translation. * @example * let translated = translateILang({fr:'En français! Bonjour {toBeReplaced}', en:'In English! Hi {toBeReplaced}'}, 'fr', {toBeReplaced: 'Peter'}) * @returns {string} */ export declare const translateILang: (dict: ILang | string, locale?: string, replaceValue?: { [key: string]: string | number; } | undefined) => string; export declare const getPaidByLabel: (value: PaymentTypeEnum | CustomPaymentTypeEnum, locale?: string, isPickup?: boolean) => string;