import { Point, Rect } from './interfaces'; import { LGraphCanvas } from './litegraph'; export declare class CurveEditor { points: Point[]; selected: number; nearest: number; size: Rect | null; must_update: boolean; margin: number; _nearest?: number; constructor(points: Point[]); static sampleCurve(f: number, points: Point[]): number | undefined; draw(ctx: CanvasRenderingContext2D, size: Rect, graphcanvas?: LGraphCanvas, background_color?: string, line_color?: string, inactive?: boolean): void; onMouseDown(localpos: Point, graphcanvas: LGraphCanvas): boolean | undefined; onMouseMove(localpos: Point, graphcanvas: LGraphCanvas): void; onMouseUp(): boolean; getCloserPoint(pos: Point, max_dist: number): number; }