/** The block editor package ships no types; only what the blocks use is declared. */ declare module '@wordpress/block-editor' { import type { ComponentType, ReactNode } from 'react'; export function useBlockProps( props?: Record ): Record; export namespace useBlockProps { function save(props?: Record): Record; } export const InspectorControls: ComponentType<{ children?: ReactNode }>; interface RichTextProps { tagName?: string; className?: string; value: string; onChange: (value: string) => void; placeholder?: string; allowedFormats?: string[]; identifier?: string; } interface RichTextContentProps { tagName?: string; className?: string; value: string; } export const RichText: ComponentType & { Content: ComponentType; }; }