///
import type { CreateEditorOptions, Editor, LayerNode, Node } from "@opendesign/universal";
import type { MountOptions } from "@opendesign/universal/dom";
export { EditorProvider, useEditorContext } from "./src/context.js";
/**
* Creates Editor object to be used. This is the main entrypoint for react apps.
* Use {@link @opendesign/react!EditorCanvas} component to display the content.
*
* @param options
* @returns
*/
export declare function useEditor(options?: CreateEditorOptions | string): Editor;
export interface EditorCanvasProps extends MountOptions {
editor: Editor;
children?: React.ReactNode;
onNodeHover?: (event: {
target: Node | null;
}) => void;
onViewportChange?: (event: {
viewport: unknown;
}) => void;
onZoom?: (event: {
zoom: number;
}) => void;
onPan?: (event: {}) => void;
onClick?: (event: {
target: Node | null;
}) => void;
onPointerMove?: (event: {
position: readonly [number, number];
}) => void;
}
/**
* React component which displays the design on canvas `