import { ImmutableHtmlNode } from '../modifications/ImmutableNode';
import { BaseApi } from './BaseApi';
import { BaseModifierApi } from './BaseModifierApi';
import { HideElementState } from './HideElement';
export interface BlockApi extends BaseApi, BaseModifierApi {
/**
* @deprecated use {@link getDocumentRootHtmlNode} instead
* Gets the root immutable HTML node of the document template.
* @returns The root ImmutableHtmlNode.
*/
getDocumentRoot(): ImmutableHtmlNode;
/**
* Sets the view-only state for the current block context.
* @param viewOnly - If true, interactions might be restricted.
*/
setViewOnly(viewOnly: boolean): void;
/**
* Gets the current hide-element state for the provided node.
* The editor resolves the canonical node that owns the visibility config.
*
* @param target - The node to inspect.
* @returns Current hide-element state.
*/
getHiddenElementState(target: ImmutableHtmlNode): HideElementState;
}