import type { Component, ComponentView, Editor } from 'grapesjs'; export interface BuildParentMjmlTemplateOptions { rootTag: string; head?: string; parentNodes: { tagName: string; attributes?: Record; }[]; withSiblings?: boolean; siblingTags?: string[]; currentSiblingIndex?: number; beforeRootEnd?: string; } export declare function splitSiblingTagsByCurrentIndex(siblingTags?: string[], currentSiblingIndex?: number): { before: string; after: string; }; export declare function buildParentMjmlTemplate({ rootTag, head, parentNodes, withSiblings, siblingTags, currentSiblingIndex, beforeRootEnd }: BuildParentMjmlTemplateOptions): { start: string; end: string; }; interface LegacyBaseMjmlViewPropsOptions { editor: Editor; view: new () => ComponentView; getTemplateFromElBase: (view: new () => ComponentView) => (this: ComponentView, el: HTMLElement) => any; getMjmlTemplate: (this: ComponentView) => { start: string; end: string; }; commandMjmlToHtml: string; } /** * Legacy full-root MJML view rendering kept as reference only. * Not used in runtime because it can trigger unrelated descendants `toHTML`. */ export declare function getBaseMjmlViewPropsLegacy({ editor, view, getTemplateFromElBase, getMjmlTemplate, commandMjmlToHtml }: LegacyBaseMjmlViewPropsOptions): { attributes: {}; getChildrenContainer(): HTMLElement; updateContent(): void; getTemplateFromMjml(): any; getTemplateFromEl: (this: ComponentView, el: HTMLElement) => any; getMjmlTemplate: (this: ComponentView) => { start: string; end: string; }; }; export {};