import { Element } from 'html-react-parser';
export interface IDataWPBlock {
[key: string]: unknown;
}
export declare const DEFAULT_BLOCK_ELEMENT: Element;
export declare const defaultElement: Element;
/**
* Represents a parsed block, i.e a block parsed from `data-wp-block` and `data-wp-block-name` attributes
*/
export type ParsedBlock = {
/**
* The Block attributes
*/
attributes: T;
/**
* The Block name
*/
name: string;
/**
* The Block class name
*/
className: string;
};
/**
* Checks whether the node is a WordPress block
*
* @param node DomNode
*
* @returns
*/
export declare function isWordPressBlock(node: Element): boolean;
/**
* Returns the block name and attributes
*
* @param node DomNode
*
* @returns
*/
export declare function parseBlockAttributes(node?: Element): ParsedBlock;