@apoorvdwi/excalidraw-collab
Version:
Excalidraw as a React component
16 lines (15 loc) • 746 B
TypeScript
import React from "react";
import { NonDeletedExcalidrawElement } from "../element/types";
import { AppState, ExportOpts, BinaryFiles } from "../types";
import "./ExportDialog.scss";
import { ActionManager } from "../actions/manager";
export declare type ExportCB = (elements: readonly NonDeletedExcalidrawElement[], scale?: number) => void;
export declare const JSONExportDialog: ({ elements, appState, files, actionManager, exportOpts, canvas, setAppState, }: {
elements: readonly NonDeletedExcalidrawElement[];
appState: AppState;
files: BinaryFiles;
actionManager: ActionManager;
exportOpts: ExportOpts;
canvas: HTMLCanvasElement | null;
setAppState: React.Component<any, AppState>["setState"];
}) => JSX.Element;