/// import BlockLeaf from "../../core/blocks/BlockLeaf"; import { RenderEditProps, RenderSaveProps } from "../../core/blocks/BlockDefinition"; import { AllHTMLAttributes } from "@wordpress/element"; /** * BlockElementLeaf class. */ export default class BlockElementLeaf extends BlockLeaf { tag: string; attributes: Record, BlockLeaf[]>; children: BlockLeaf[]; /** * Creates an element leaf. * * @param tag The tag. * @param attributes The attributes. * @param children The children. */ constructor(tag: string, attributes?: Record, children?: BlockLeaf[]); /** * Renders editing a leaf. * * @param props The render props. * @param i The number child this leaf is. * * @returns The rendered element. */ save(props: RenderSaveProps, i: number): JSX.Element; /** * Renders saving a leaf. * * @param props The render props. * @param i The number child this leaf is. * * @returns The rendered element. */ edit(props: RenderEditProps, i: number): JSX.Element; }