import { BlocksPanelApi } from '../api/BlocksPanelApi'; export interface BlockItem { name: string; title: string; iconSrc: string; description: string; disabled?: boolean; } export interface BlockHint { title: string; description: string; } export declare class BlocksPanel { api: BlocksPanelApi; /** * Generates HTML representation for a block item * @param block - The block item to generate HTML for * @returns HTML string representation of the block or undefined if default representation should be used */ getBlockItemHtml(block: BlockItem): string | undefined; /** * Determines whether a hint should be displayed for the block * @param block - The block item to check hint visibility for * @returns True if the hint should be visible, false otherwise */ isBlockHintVisible(block: BlockItem): boolean; /** * Determines whether a draggable handle should be displayed in modules panel * @returns True if the block panel should be reorderable */ isPanelPlacementChangeEnabled(): boolean; /** * Gets the hint text for a block * @param block - The block item to get hint for * @returns The hint text for the block or undefined if default hint should be used */ getBlockHint(block: BlockItem): BlockHint | undefined; /** * Generates HTML representation for the blocks panel header * @returns HTML string representation of the blocks panel header or undefined if header should not be shown */ getBlocksPanelHeaderHtml(): string | undefined; /** * Generates HTML representation for the modules panel in collapsed state * @returns HTML string representation of the collapsed modules panel or undefined if default representation should be used */ getModulesPanelCollapsedHtml(): string | undefined; /** * Determines whether a hint should be displayed for the collapsed modules panel * @returns True if the hint should be visible, false otherwise */ isModulesPanelCollapsedHintVisible(): boolean; /** * Gets the custom delay for showing hints * @returns The delay in milliseconds or undefined to use the default delay */ getHintDelay(): number | undefined; /** * Gets the hint text for a modules panel block * @returns The hint text for the modules panel or undefined if default hint should be used */ getModulesPanelHint(): BlockHint | undefined; /** * Gets the icon name for the modules tab * @returns The icon name for the modules tab or undefined if default icon or text should be used */ getModulesTabIconName(modulesTab: { key: string; label: Record; }): string | undefined; }