import { LGraphNode } from '../LGraphNode'; import { IButtonWidget } from '../types/widgets'; import { BaseWidget, DrawWidgetOptions, WidgetEventOptions } from './BaseWidget'; export declare class ButtonWidget extends BaseWidget implements IButtonWidget { type: "button"; clicked: boolean; constructor(widget: IButtonWidget, node: LGraphNode); /** * Draws the widget * @param ctx The canvas context * @param options The options for drawing the widget */ drawWidget(ctx: CanvasRenderingContext2D, { width, showText, }: DrawWidgetOptions): void; drawLabel(ctx: CanvasRenderingContext2D, x: number): void; onClick({ e, node, canvas }: WidgetEventOptions): void; }