import type { ExcalidrawLinearElement } from "@excalidraw/element/types"; export declare const actionToggleLinearEditor: { name: "toggleLinearEditor"; category: string; label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit"; keywords: string[]; trackEvent: { category: "element"; }; predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean; perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, _: any, app: import("../types").AppClassProperties): { appState: { selectedLinearElement: { isEditing: boolean; elementId: string & { _brand: "excalidrawLinearElementId"; }; selectedPointsIndices: readonly number[] | null; pointerDownState: Readonly<{ prevSelectedPointsIndices: readonly number[] | null; lastClickedPoint: number; lastClickedIsEndPoint: boolean; origin: Readonly<{ x: number; y: number; }> | null; segmentMidpoint: { value: import("@excalidraw/math").GlobalPoint | null; index: number | null; added: boolean; }; }>; isDragging: boolean; lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null; pointerOffset: Readonly<{ x: number; y: number; }>; startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null; endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null; hoverPointIndex: number; segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null; elbowed: boolean; customLineAngle: number | null; }; contextMenu: { items: import("../components/ContextMenu").ContextMenuItems; top: number; left: number; } | null; showWelcomeScreen: boolean; isLoading: boolean; errorMessage: import("react").ReactNode; activeEmbeddable: { element: import("@excalidraw/element/types").NonDeletedExcalidrawElement; state: "active" | "hover"; } | null; newElement: import("@excalidraw/element/types").NonDeleted | null; resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null; multiElement: import("@excalidraw/element/types").NonDeleted | null; selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null; isBindingEnabled: boolean; startBoundElement: import("@excalidraw/element/types").NonDeleted | null; suggestedBindings: import("@excalidraw/element").SuggestedBinding[]; frameToHighlight: import("@excalidraw/element/types").NonDeleted | null; frameRendering: { enabled: boolean; name: boolean; outline: boolean; clip: boolean; }; editingFrame: string | null; elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null; editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null; activeTool: { lastActiveTool: import("../types").ActiveTool | null; locked: boolean; fromSelection: boolean; } & import("../types").ActiveTool; penMode: boolean; penDetected: boolean; exportBackground: boolean; exportEmbedScene: boolean; exportWithDarkMode: boolean; exportScale: number; currentItemStrokeColor: string; currentItemBackgroundColor: string; currentItemFillStyle: import("@excalidraw/element/types").FillStyle; currentItemStrokeWidth: number; currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle; currentItemRoughness: number; currentItemOpacity: number; currentItemFontFamily: number; currentItemFontSize: number; currentItemTextAlign: string; currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null; currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null; currentHoveredFontFamily: number | null; currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness; currentItemArrowType: "round" | "sharp" | "elbow"; viewBackgroundColor: string; scrollX: number; scrollY: number; cursorButton: "up" | "down"; scrolledOutside: boolean; name: string | null; isResizing: boolean; isRotating: boolean; zoom: Readonly<{ value: import("../types").NormalizedZoomValue; }>; openMenu: "canvas" | "shape" | null; openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null; openSidebar: { name: string; tab?: string | undefined; } | null; openDialog: { name: "help" | "imageExport" | "jsonExport"; } | { name: "ttd"; tab: "mermaid" | "text-to-diagram"; } | { name: "commandPalette"; } | { name: "elementLinkSelector"; sourceElementId: string; } | null; defaultSidebarDockedPreference: boolean; lastPointerDownWith: import("@excalidraw/element/types").PointerType; selectedElementIds: Readonly<{ [id: string]: true; }>; hoveredElementIds: Readonly<{ [id: string]: true; }>; previousSelectedElementIds: { [id: string]: true; }; selectedElementsAreBeingDragged: boolean; shouldCacheIgnoreZoom: boolean; toast: { message: string; closable?: boolean | undefined; duration?: number | undefined; } | null; zenModeEnabled: boolean; theme: import("@excalidraw/element/types").Theme; gridSize: number; gridStep: number; gridModeEnabled: boolean; viewModeEnabled: boolean; selectedGroupIds: { [groupId: string]: boolean; }; editingGroupId: string | null; width: number; height: number; offsetTop: number; offsetLeft: number; fileHandle: import("browser-fs-access").FileSystemHandle | null; collaborators: Map | undefined; username?: string | null | undefined; userState?: import("@excalidraw/common").UserIdleState | undefined; color?: { background: string; stroke: string; } | undefined; avatarUrl?: string | undefined; id?: string | undefined; socketId?: import("../types").SocketId | undefined; isCurrentUser?: boolean | undefined; isInCall?: boolean | undefined; isSpeaking?: boolean | undefined; isMuted?: boolean | undefined; }>>; stats: { open: boolean; panels: number; }; currentChartType: import("@excalidraw/element/types").ChartType; pasteDialog: { shown: false; data: null; } | { shown: true; data: import("../charts").Spreadsheet; }; showHyperlinkPopup: false | "editor" | "info"; linkOpacity: number; trayModeEnabled: boolean; colorPalette?: { canvasBackground: import("@excalidraw/common").ColorPaletteCustom; elementBackground: import("@excalidraw/common").ColorPaletteCustom; elementStroke: import("@excalidraw/common").ColorPaletteCustom; topPicks: { canvasBackground: [string, string, string, string, string]; elementStroke: [string, string, string, string, string]; elementBackground: [string, string, string, string, string]; }; } | undefined; allowWheelZoom?: boolean | undefined; allowPinchZoom?: boolean | undefined; pinnedScripts?: string[] | undefined; customPens?: any[] | undefined; currentStrokeOptions?: any; resetCustomPen?: any; gridColor: { Bold: string; Regular: string; }; gridDirection: { horizontal: boolean; vertical: boolean; }; highlightSearchResult: boolean; dynamicStyle: { [x: string]: string; }; frameColor: { stroke: string; fill: string; nameColor: string; }; invertBindingBehaviour: boolean; snapLines: readonly import("../snapping").SnapLine[]; originSnapOffset: { x: number; y: number; } | null; objectsSnapModeEnabled: boolean; userToFollow: import("../types").UserToFollow | null; followedBy: Set; isCropping: boolean; croppingElementId: string | null; searchMatches: Readonly<{ focusedId: string | null; matches: readonly import("../types").SearchMatch[]; }> | null; activeLockedId: string | null; lockedMultiSelections: { [groupId: string]: true; }; }; captureUpdate: "IMMEDIATELY"; }; PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element; } & { keyTest?: undefined; }; export declare const actionTogglePolygon: { name: "togglePolygon"; category: string; icon: import("react/jsx-runtime").JSX.Element; keywords: string[]; label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon"; trackEvent: { category: "element"; }; predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean; perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, _: any, app: import("../types").AppClassProperties): false | { elements: ((Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "line" | "arrow"; points: readonly import("@excalidraw/math").LocalPoint[]; lastCommittedPoint: import("@excalidraw/math").LocalPoint | null; startBinding: import("@excalidraw/element/types").PointBinding | null; endBinding: import("@excalidraw/element/types").PointBinding | null; startArrowhead: import("@excalidraw/element/types").Arrowhead | null; endArrowhead: import("@excalidraw/element/types").Arrowhead | null; }> & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "selection"; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "rectangle"; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "diamond"; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "ellipse"; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "embeddable"; scale: [number, number]; }> & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "iframe"; customData?: { generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined; } | undefined; scale: [number, number]; }> & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "image"; fileId: import("@excalidraw/element/types").FileId | null; status: "pending" | "error" | "saved"; scale: [number, number]; crop: import("@excalidraw/element/types").ImageCrop | null; }> & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "frame"; name: string | null; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & { type: "magicframe"; name: string | null; } & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "text"; fontSize: number; fontFamily: number; text: string; rawText: string; textAlign: string; verticalAlign: string; containerId: string | null; originalText: string; autoResize: boolean; lineHeight: number & { _brand: "unitlessLineHeight"; }; }> & { index: import("@excalidraw/element/types").FractionalIndex; }) | (Readonly<{ id: string; x: number; y: number; strokeColor: string; backgroundColor: string; fillStyle: import("@excalidraw/element/types").FillStyle; strokeWidth: number; strokeStyle: import("@excalidraw/element/types").StrokeStyle; roundness: { type: import("@excalidraw/element/types").RoundnessType; value?: number | undefined; } | null; roughness: number; opacity: number; width: number; height: number; angle: import("@excalidraw/math").Radians; seed: number; version: number; versionNonce: number; index: import("@excalidraw/element/types").FractionalIndex | null; isDeleted: boolean; groupIds: readonly string[]; frameId: string | null; boundElements: readonly Readonly<{ id: string; type: "arrow" | "text"; }>[] | null; updated: number; link: string | null; locked: boolean; customData?: Record | undefined; }> & Readonly<{ type: "freedraw"; points: readonly import("@excalidraw/math").LocalPoint[]; pressures: readonly number[]; simulatePressure: boolean; lastCommittedPoint: import("@excalidraw/math").LocalPoint | null; }> & { index: import("@excalidraw/element/types").FractionalIndex; }))[]; appState: Readonly; captureUpdate: "IMMEDIATELY"; }; PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null; } & { keyTest?: undefined; };