///
import { BlockConfiguration } from "@wordpress/blocks";
import { RenderEditProps, RenderSaveProps } from "../../core/blocks/BlockDefinition";
import RichTextBase, { RichTextEditProps, RichTextSaveProps } from "./abstract/RichTextBase";
import BlockLeaf from "../../core/blocks/BlockLeaf";
/**
* Heading instruction.
*/
export declare class Heading extends RichTextBase {
options: {
tags: (keyof HTMLElementTagNameMap)[] | Record;
defaultHeadingLevel: number;
name: string;
class: string;
default: string;
placeholder: string;
keepPlaceholderOnFocus?: boolean;
multiline: boolean;
label: string;
value: string;
};
/**
* Adds the RichText attributes to the block configuration.
*
* @returns The block configuration.
*/
configuration(): Partial;
/**
* Renders editing the rich text.
*
* @param props The render props.
* @param leaf The leaf being rendered.
* @param i The number child this is.
*
* @returns The RichText element.
*/
edit(props: RenderEditProps, leaf: BlockLeaf, i: number): JSX.Element;
/**
* Gets the selected tag name from the props if available.
* If not, it falls back to the default tag defined in the options or "h2".
*
* @param props The props.
*
* @returns The tag name to use.
*/
private getHeadingLevel;
/**
* Gets the base attributes of the rich text.
*
* @param props The props.
* @param i The number child this is.
*
* @returns The base attributes.
*/
protected getBaseAttributes(props: RenderSaveProps | RenderEditProps, i: number): RichTextSaveProps | RichTextEditProps;
}