import { Base, IAction, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel, ILocalizableString, PopupBaseViewModel, PageModel, ILocalizableOwner, LocalizableString, SurveyVariablePresets } from "survey-core"; export declare enum QuestionConvertMode { AllTypes = 0, CompatibleTypes = 1 } export declare var settings: { translation: { sortByName: boolean; exportPrefix: string; maximumSelectedLocales: number; exportFileName: string; }; themeEditor: { exportFileName: string; defaultFontFamily: string; }; operators: { empty: any[]; notempty: any[]; equal: string[]; notequal: string[]; contains: string[]; notcontains: string[]; anyof: string[]; noneof: string[]; allof: string[]; greater: string[]; less: string[]; greaterorequal: string[]; lessorequal: string[]; }; defaultNewSurveyJSON: {}; designer: { defaultAddQuestionType: string; showAddQuestionButton: boolean; }; logic: { questionSortOrder: string; defaultOperator: string; defaultOperators: { default: string; checkbox: string; tagbox: string; }; includeComplexQuestions: boolean; visibleActions: string[]; invisibleTriggers: string[]; logicItemTitleMaxChars: number; openBracket: string; closeBracket: string; updateExpressionsOnChanging: { questionName: boolean; columnName: boolean; choiceValue: boolean; }; updateExpressionsOnDeleting: { question: boolean; }; }; questionConvertMode: QuestionConvertMode; propertyGrid: { useButtonGroup: boolean; maxCharsInButtonGroup: number; showNavigationButtons: boolean; enableSearch: boolean; maxColumns: number; minChoices: number; maxChoices: number; maxRows: number; maxRateValues: number; maximumColumnsCount: number; minimumChoicesCount: number; maximumChoicesCount: number; maximumRowsCount: number; maximumRateValues: number; generalTabName: string; defaultExpandedTabName: string; allowExpandMultipleCategories: boolean; }; toolbox: { defaultJSON: { [index: string]: any; }; }; notifications: { lifetime: number; }; autoSave: { delay: number; }; dragDrop: { restrictDragQuestionBetweenPages: boolean; allowDragToTheSameLine: boolean; }; layout: { showTabs: boolean; showToolbar: boolean; allowCollapseSidebar: boolean; }; jsonEditor: { indentation: number; exportFileName: string; }; useLegacyIcons: boolean; pageContentLazyRendering: boolean; }; export interface ICollectionItemAllowOperations { allowDelete: boolean; allowEdit: boolean; allowAdd: boolean; } export interface ICreatorPlugin { activate: () => void; update?: () => void; deactivate?: () => boolean; canDeactivateAsync?: (onSuccess: () => void) => void; applyPendingChanges?: () => boolean; defaultAllowingDeactivate?: () => boolean | undefined; dispose?: () => void; onDesignerSurveyPropertyChanged?: (obj: Base, propName: string) => void; onLocaleChanged?: () => void; getLicenseText?: (hasCreatorLicense: boolean, creatorKeyDateString: string) => string; addFooterActions?: () => void; model: Base; } export interface ITabOptions { name: string; plugin?: ICreatorPlugin; pluginCreator?: () => ICreatorPlugin; title?: string; iconName?: string; componentName?: string; index?: number; isInternal?: boolean; } export interface ISurveyCreatorOptions { isMobileView: boolean; alwaySaveTextInPropertyEditors: boolean; readOnly: boolean; logicMaxItemsInCondition: number; logicAllowTextEditExpressions: boolean; useElementTitles: boolean; maxColumns: number; minChoices: number; maxChoices: number; maxRows: number; maxRateValues: number; maxPanelNestingLevel: number; forbiddenNestedElements: { panel: string[]; paneldynamic: string[]; }; enableLinkFileEditor: boolean; inplaceEditChoiceValues: boolean; rootElement?: HTMLElement; previewShowResults: boolean; showOneCategoryInPropertyGrid: boolean; trimValues: boolean; getObjectDisplayName(obj: Base, area: string, reason: string, displayName?: string): string; getElementAddornerCssCallback(obj: Base, className: string): string; onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean; onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any; onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): any; onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any; onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): any; onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean; onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean; onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array, item: Base): boolean; onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: Array, item: Base, options: ICollectionItemAllowOperations): void; onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: ItemValue, itemValues: Array): any; onFastEntryCallback(items: Array, lines: Array): Array; onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array): any; onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): any; onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string; onValueChangingCallback(options: any): void; onGetElementEditorTitleCallback(obj: Base, title: string): string; startUndoRedoTransaction(name?: string): void; stopUndoRedoTransaction(): void; createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel; onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string; variablePresetsModel?: SurveyVariablePresets; isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean; onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string; getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string; getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string; uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any, context?: { element: Base; item?: any; elementType?: string; propertyName?: string; }): void; clearFiles(value: any, question: Question, callback: (status: string, data: any) => any, context?: { element: Base; item?: any; elementType?: string; propertyName?: string; }): void; getHasMachineTranslation(): boolean; doMachineTranslation(fromLocale: string, toLocale: string, strings: Array, callback: (translated: Array) => void): void; chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: { element: Base; item?: any; elementType?: string; propertyName?: string; }): void; translationLocalesOrder: Array; canAddPage(pageToAdd?: PageModel): boolean; expressionsValidateFunctions?: boolean; expressionsValidateVariables?: boolean; expressionsValidateSyntax?: boolean; expressionsValidateSemantics?: boolean; } export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions, ILocalizableOwner { logicMaxItemsInCondition: number; previewShowResults: boolean; rootElement: HTMLElement; enableLinkFileEditor: boolean; getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string; isMobileView: boolean; alwaySaveTextInPropertyEditors: boolean; readOnly: boolean; useElementTitles: boolean; logicAllowTextEditExpressions: boolean; maxColumns: number; minChoices: number; maxChoices: number; maxRows: number; maxRateValues: number; machineTranslationValue: boolean; inplaceEditChoiceValues: boolean; maxPanelNestingLevel: number; forbiddenNestedElements: { panel: string[]; paneldynamic: string[]; }; showOneCategoryInPropertyGrid: boolean; trimValues: boolean; getObjectDisplayName(obj: Base, area: string, reason: string, displayName?: string): string; onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean; getElementAddornerCssCallback(obj: Base, className: string): string; onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void; onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void; onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void; onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): void; onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean; onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean; onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array, item: Base): boolean; onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: Array, item: Base, options: ICollectionItemAllowOperations): void; onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: ItemValue, itemValues: Array): void; onFastEntryCallback(items: Array, lines: Array): Array; onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array): void; onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): void; onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string; onValueChangingCallback(options: any): void; onGetElementEditorTitleCallback(obj: Base, title: string): string; startUndoRedoTransaction(name?: string): void; stopUndoRedoTransaction(): void; createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel; onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string; isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean; onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string; getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string; uploadFiles(files: File[], question: Question, callback: (status: string, data: any) => any): void; clearFiles(value: any, question: Question, callback: (status: string, data: any) => any, context?: { element: Base; item?: any; elementType?: string; propertyName?: string; }): void; getHasMachineTranslation(): boolean; doMachineTranslation(fromLocale: string, toLocale: string, strings: Array, callback: (translated: Array) => void): void; chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: { element: Base; item?: any; elementType?: string; propertyName?: string; }): void; translationLocalesOrder: Array; canAddPage(pageToAdd?: PageModel): boolean; getLocale(): string; getMarkdownHtml(text: string, name: string, item?: any): string; getProcessedText(text: string): string; getRenderer(name: string): string; getRendererContext(locStr: LocalizableString): LocalizableString; expressionsValidateFunctions: boolean; expressionsValidateVariables: boolean; expressionsValidateSyntax: boolean; expressionsValidateSemantics: boolean; }