import { Block, BlockInstance } from "@wordpress/blocks"; /** * Gets the inner blocks of the block with the given clientId from the core/block-editor store. * * @param clientId The clientId of the block you want. * * @returns {BlockInstance} The block you want. */ declare function getBlockByClientId(clientId: string): BlockInstance; /** * Removes a block from the editor. * * @param {string} clientId The client id of the block to remove. */ declare function removeBlock(clientId: string): void; /** * Restores the recommended or required block that had just been removed. * * @param {string} clientId The client ID of the warning block. * @param {string} removedBlock The removed block. */ declare function restoreBlock(clientId: string, removedBlock: BlockInstance): void; /** * Finds the block type in the list of registered blocks in the block editor. * * @param {string} blockName The block to search for. * * @return {BlockInstruction} The found block. */ declare function getBlockType(blockName: string): Block | undefined; /** * Retrieves a human readable block name. * * @param blockName The block name (e.g. the Gutenberg block id). * * @returns A human readable block title. */ declare function getHumanReadableBlockName(blockName: string): string; export { getBlockByClientId, removeBlock, restoreBlock, getBlockType, getHumanReadableBlockName };