import { Base, SurveyModel, ILocalizableString, Action, IAction, QuestionMatrixDynamicModel } from "survey-core"; import { ISurveyCreatorOptions } from "../../creator-settings"; import "./translation.scss"; import { TranslationBase } from "./translation-base"; export * from "./translation-base"; export declare class Translation extends TranslationBase { private addLanguageAction; chooseLanguageActions: Array; constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean); canMergeLocaleWithDefault: boolean; mergeLocaleWithDefaultText: string; private editLocale; private editModeValue; getEditLocale(): string; setEditMode(locale: string): void; get isEditMode(): boolean; applyEditLocale(): void; get localesQuestion(): QuestionMatrixDynamicModel; private removingLocale; protected createSettingsSurvey(): SurveyModel; private isChooseLanguageEnabled; private calcIsChooseLanguageEnabled; private refreshAddLanguageActionListModel; private updateLocales; private getSettingsSurveyJSON; private updateSettingsSurveyLocales; private addLocaleIntoValue; private isLocaleVisible; private setupToolbarItems; protected getColumnLocales(): Array; protected getExportLocales(): Array; protected hasNewLocales(locStr: ILocalizableString): boolean; protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void; private getMergeLocaleWithDefaultText; reset(alwaysReset?: boolean): void; protected updateLocalesOnReset(prevVisibleLocales: Array): void; removeLocale(locale: string): void; addLocale(locale: string): void; private updateChooseLanguageActions; resetLocales(): void; getSelectedLocales(): Array; setSelectedLocales(selectedLocales: Array): void; getVisibleLocales(): Array; setVisibleLocales(locales: Array): void; private getSelectedLocalesCore; private getOrderedLocales; private ensureSelectedLocale; private isDefaultLocaleSelected; private getOrderedLocaleNames; private setSelectedAndVisibleLocales; mergeLocaleWithDefault(): void; createTranslationEditor(locale: string): TranslationEditor; showTranslationEditor(locale: string): void; } export declare class TranslationForEditor extends Translation { private surveyStringsHeaderCreatedCallback; constructor(survey: SurveyModel, options: ISurveyCreatorOptions, surveyStringsHeaderCreatedCallback: (survey: SurveyModel) => void); protected getSurveyStringsArea(): string; protected getSurveyStringsHeaderArea(): string; protected onSurveyStringsHeaderCreated(survey: SurveyModel): void; } export declare class TranslationEditor { fromLocales: Array; private survey; private translationValue; private options; private fromLocale; private locale; private translationTab; onApply: () => void; constructor(survey: SurveyModel, locale: string, options: ISurveyCreatorOptions, translationStringVisibilityCallback?: (obj: Base, propertyName: string, visible: boolean) => boolean, translationTab?: TranslationBase); private getInitialFromLocale; private isValidFromLocale; get translation(): Translation; showDialog(): void; doMachineTranslation(): void; apply(): void; cancel(): void; dispose(): void; setFromLocale(locale: string): void; private updateMatricesColumns; private updateHeaderMatrixColumns; private updateMatrixColumns; private fillFromLocales; private setupNavigationButtons; private createStringsToTranslate; private get isDefaultLocaleTarget(); private getFromLocaleItems; private createLocaleFromAction; private updateFromLocaleAction; private getActionTranslateFromText; } export declare function createImportCSVAction(action: () => void, needSeparator: boolean, isInEditor?: boolean): Action; export declare function createExportCSVAction(action: () => void, isInEditor?: boolean): Action;