import type { App, AppState } from "@excalidraw/excalidraw/types"; import type { LocalPoint, GlobalPoint } from "@excalidraw/math"; import type { Bounds } from "@excalidraw/common"; import type { ExcalidrawArrowElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawEllipseElement, ExcalidrawFreeDrawElement, ExcalidrawFrameLikeElement, ExcalidrawRectangleElement, ElementsMap, NonDeleted, ExcalidrawLineElement } from "@excalidraw/element/types"; declare global { interface Window { LAST_POINTS?: readonly GlobalPoint[]; } } type NonDeletedRecognizedShapeElement = NonDeleted; type Shape = NonDeletedRecognizedShapeElement["type"]; interface ShapeRecognitionResult

{ type: Shape; points: readonly P[]; boundingBox: Bounds; } export declare const recognizeShape:

(points: P[], previousElement: ExcalidrawElement | null, zoom?: number) => ShapeRecognitionResult

; export declare const convertToShape: (points: GlobalPoint[], appState: AppState, elementsMap: ElementsMap, previousElement: ExcalidrawElement | null, frames?: readonly ExcalidrawFrameLikeElement[]) => NonDeletedRecognizedShapeElement | undefined; export declare const convertToShapeHandlePointerMoveFromPointerDown: (app: App, pointerCoords: { x: number; y: number; }) => boolean; export {};