/// import { ReactElement } from "@wordpress/element"; import BlockInstruction from "../../core/blocks/BlockInstruction"; import { BlockEditProps, BlockConfiguration } from "@wordpress/blocks"; import { InstructionOptions } from "../../core/Instruction"; /** * Sidebar input instruction. */ export default class InheritSidebar extends BlockInstruction { options: InstructionOptions & { parents: string[]; }; /** * Renders the sidebar for any parent blocks defined in the parents attribute, or the immediate parent's sidebar if no parents are specified. * * @param props The render props. * @param i The number sidebar element this is. * * @returns The sidebar element. */ sidebar(props: BlockEditProps>, i: number): ReactElement; /** * Adds the sidebar input to the block configuration. * * @returns The block configuration. */ configuration(): Partial; }