import { Element, Element as NodeElement, PageElement } from "../../typings"; import { JsonToMjmlOption } from "../isProductionMode"; import { getUniversalElements, transformUniversalElements } from "./universalElement"; import React from "react"; import { mjmlToBlockElement } from "./mjmlToBlockElement"; export declare class EditorCore { static autoComplete: boolean; static setAutoComplete(autoComplete: boolean): void; static version: string; static auth(clientId: string): Promise; static toMJML(options: JsonToMjmlOption): string; static translate(options: { template: { subject: string; content: PageElement; }; translate: (words: string[]) => Promise>; helper?: { extract: (element: Element, words: string[]) => Array; replace: (element: Element, wordsMap: Record) => void; }; }): Promise<{ content: PageElement; subject: string; }>; static elementToMjml(node: NodeElement, options: Omit & { pageElement: NodeElement; }): string; static elementComponentToMjml(content: React.ReactNode, options: Omit & { pageElement: NodeElement; }): string; static mjmlToBlockElement: typeof mjmlToBlockElement; static isPageDataVariable(text: string): boolean; static getPageVariableKey: (text: string) => string; static getPageDataVariables: (pageVariables: PageElement["data"]["variables"], attributesVariables: Record) => Record; static renderWithPageVariables: (obj: T, data?: Record, includeChildren?: boolean) => T; static getWidgetElementsInputData: (element: Element) => Record; static getUniversalElements: typeof getUniversalElements; static transformUniversalElements: typeof transformUniversalElements; }