import { LGraphNode } from '../LGraphNode'; import { IStringWidget } from '../types/widgets'; import { BaseWidget, DrawWidgetOptions, WidgetEventOptions } from './BaseWidget'; export declare class TextWidget extends BaseWidget implements IStringWidget { constructor(widget: IStringWidget, 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; onClick({ e, node, canvas }: WidgetEventOptions): void; }