///
import { LinearElementEditor } from "../element/linearElementEditor";
import { AppState } from "../types";
export declare const actionFinalize: {
name: "finalize";
trackEvent: false;
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly, _: any, { canvas, focusContainer, scene }: import("../types").AppClassProperties) => {
elements: import("../element/types").ExcalidrawElement[] | undefined;
appState: {
cursorButton: "up";
editingLinearElement: null;
isLoading: boolean;
errorMessage: string | null;
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
multiElement: import("../element/types").NonDeleted | null;
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("../element/types").NonDeleted | null;
suggestedBindings: import("../element/binding").SuggestedBinding[];
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
activeTool: {
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
locked: boolean;
customType: null;
} | {
type: "custom";
customType: string;
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
locked: boolean;
};
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("../element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("../element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: import("../element/types").TextAlign;
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
scrolledOutside: boolean;
name: string;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
lastPointerDownWith: import("../element/types").PointerType;
selectedElementIds: {
[id: string]: boolean;
};
previousSelectedElementIds: {
[id: string]: boolean;
};
shouldCacheIgnoreZoom: boolean;
showHelpDialog: boolean;
toastMessage: string | null;
zenModeEnabled: boolean;
theme: string;
gridSize: number | null;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
isLibraryOpen: boolean;
isLibraryMenuDocked: boolean;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map;
showStats: boolean;
currentChartType: import("../element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "info" | "editor";
};
commitToHistory: true;
} | {
elements: readonly import("../element/types").ExcalidrawElement[];
appState: {
cursorButton: "up";
activeTool: {
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
locked: boolean;
customType: null;
} | {
type: "custom";
customType: string;
lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
locked: boolean;
};
draggingElement: null;
multiElement: null;
editingElement: null;
startBoundElement: null;
suggestedBindings: never[];
selectedElementIds: {
[id: string]: boolean;
};
pendingImageElementId: null;
isLoading: boolean;
errorMessage: string | null;
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
editingLinearElement: LinearElementEditor | null;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("../element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("../element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: import("../element/types").TextAlign;
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
scrolledOutside: boolean;
name: string;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
lastPointerDownWith: import("../element/types").PointerType;
previousSelectedElementIds: {
[id: string]: boolean;
};
shouldCacheIgnoreZoom: boolean;
showHelpDialog: boolean;
toastMessage: string | null;
zenModeEnabled: boolean;
theme: string;
gridSize: number | null;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
isLibraryOpen: boolean;
isLibraryMenuDocked: boolean;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map;
showStats: boolean;
currentChartType: import("../element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
showHyperlinkPopup: false | "info" | "editor";
};
commitToHistory: boolean;
};
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent, appState: AppState) => boolean;
PanelComponent: ({ appState, updateData, data }: import("react").PropsWithChildren) => JSX.Element;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent, appState: AppState) => boolean) | undefined;
};