import type { ExcalidrawElement, ExcalidrawTextElement } from "@excalidraw/element/types"; import type App from "../components/App"; type SubmitHandler = () => void; export declare const textWysiwyg: ({ id, onChange, onSubmit, getViewportCoords, element, canvas, excalidrawContainer, app, autoSelect, initialCaretSceneCoords, }: { id: ExcalidrawElement["id"]; /** * textWysiwyg only deals with `originalText` * * Note: `text`, which can be wrapped and therefore different from `originalText`, * is derived from `originalText` */ onChange?: (nextOriginalText: string) => void; onSubmit: (data: { viaKeyboard: boolean; nextOriginalText: string; }) => void; getViewportCoords: (x: number, y: number) => [number, number]; element: ExcalidrawTextElement; canvas: HTMLCanvasElement; excalidrawContainer: HTMLDivElement | null; app: App; autoSelect?: boolean; initialCaretSceneCoords?: { x: number; y: number; } | null; }) => SubmitHandler; export {};