/// import BlockInstruction from "../../../core/blocks/BlockInstruction"; import { RenderSaveProps, RenderEditProps } from "../../../core/blocks/BlockDefinition"; export declare type SidebarBaseOptions = { name: string; default?: string; type?: string; label?: string; help?: string; className: string; required?: boolean; visible?: boolean; }; /** * Sidebar input instruction */ export default abstract class SidebarBase extends BlockInstruction { options: SidebarBaseOptions; /** * Renders the value of a sidebar input. * * @param props The render props. * * @returns The value of the sidebar input. */ save(props: RenderSaveProps): JSX.Element | string; /** * Renders the value of a sidebar input. * * @param props The render props. * * @returns The value of the sidebar input. */ edit(props: RenderEditProps): JSX.Element | string; /** * Returns whether or not this instruction should be included in the tree. * * @returns Whether or not to render this instruction. */ renderable(): boolean; protected abstract value(props: RenderSaveProps | RenderEditProps): JSX.Element | string; }