/** * Function to initialise monaco editor * * @param {Object} editorContainer - editor container dom * @param {Object} resizeHandle - Dom element * @param {StoryTellingEditor} StoryTellingEditor - Dom element */ export default function initEditorEvents(editorContainer: any, resizeHandle: any, StoryTellingEditor: StoryTellingEditor): Promise; /** * Function to position editor based on parent height * * @param {StoryTellingEditor} StoryTellingEditor - Dom element */ export function positionEditor(StoryTellingEditor: StoryTellingEditor): void; /** * Function import md file into editor * * @param {Object} editor - The SimpleMDE instance */ export function importMdFile(editor: any): void; /** * Function upload md file from editor * * @param {Object} editor - The SimpleMDE instance */ export function exportMdFile(editor: any): void; /** * Get indexes of sections with help of markdown array * * @param {Array} markdownArr - Current markdown array * @return {Array} */ export function getSectionIndexes(markdownArr: any[]): any[]; /** * Add custom section markdown based on insert position and updated field value * * @param {String} markdown - Current markdown * @param {Number} customSectionIndex - Section index where new section markdown will go * @param {String} newMarkdown - Custom section markdown which is to be inserted * @param {Object} fields - json-form fields which is used to insert custom value to markdown * @param {Boolean} updatedFieldValues - State whether there is updated field values or not * @param {import("../main.js").EOxStoryTelling} EOxStoryTelling - EOxStoryTelling instance. */ export function addCustomSection(markdown: string, customSectionIndex: number, newMarkdown: string, fields: any, updatedFieldValues: boolean, EOxStoryTelling: import("../main.js").EOxStoryTelling): void; /** * Generate auto save functionality when markdown changes * * @param {Element} StoryTellingEditor - Dom element * @param {String | null} storyId - ID of story * @param {{codemirror, value}} easyMDEInstance - Simple MDE instance */ export function generateAutoSave(StoryTellingEditor: Element, storyId: string | null, easyMDEInstance: { codemirror: any; value: any; }): void; /** * Prevent editor outside scrolling * * @param {StoryTellingEditor} StoryTellingEditor - Dom element */ export function preventEditorOutsideScroll(StoryTellingEditor: StoryTellingEditor): void; /** * Init saved markdown if it is present * * @param {import("../main.js").EOxStoryTelling} EOxStoryTelling - EOxStoryTelling instance. */ export function initSavedMarkdown(EOxStoryTelling: import("../main.js").EOxStoryTelling): void; /** * Run when editor is initialised with all it's instance values * * @param {StoryTellingEditor} StoryTellingEditor - Dom element */ export function runWhenEditorInitialised(StoryTellingEditor: StoryTellingEditor): void; /** * Update initial editor visibility * * @param {import("../components/editor.js").StoryTellingEditor} StoryTellingEditor - Dom element */ export function updateEditorInitVisibility(StoryTellingEditor: import("../components/editor.js").StoryTellingEditor): void; export type StoryTellingEditor = import("../components/editor").StoryTellingEditor; //# sourceMappingURL=editor.d.ts.map