export declare namespace TranslationUtils { type Translation = { [key: string]: string; }; export interface ITranslations { text: Translation; image: Translation; } /** * todo set autoParagraph to False in Django CKEDITOR_CONFIGS settings * todo check if htmlDecode is still needed * removed P tag if its the only tag, but will do nothing if more html tags are found * @param str */ export function tempCleanPTag(str: string): string; /** * get text from backend * will return html version * @param translations * @param key * @param params */ export function getText(translations: ITranslations | undefined, key: string, params?: { [name: string]: number | string; }, defaultText?: string): string; /** * get image from backend * @param translations * @param key */ export function getImage(translations: ITranslations | undefined, key: string): string; /** * parse human labels to keys * labelToKey('In Progress') -> 'in_progress' */ export function labelToKey(label: string): string; export {}; }