import { Ancestor, Editor, Node, Operation, Point, Range, RangeRef, Text } from '../../slate/index.ts'; import { Key } from './key'; import { toRawWeakMap } from '../../share-tools/index.ts'; export type Action = { at?: Point | Range; run: () => void; }; /** * Two weak maps that allow us rebuild a path given a node. They are populated * at render time such that after a render occurs we can always backtrack. */ export declare const NODE_TO_INDEX: WeakMap; export declare const NODE_TO_PARENT: WeakMap; /** * Weak maps that allow us to go between Slate nodes and DOM nodes. These * are used to resolve DOM event-related logic into Slate actions. */ export declare const EDITOR_TO_WINDOW: WeakMap; export declare const EDITOR_TO_ELEMENT: WeakMap; export declare const ELEMENT_TO_NODE: WeakMap; export declare const NODE_TO_ELEMENT: WeakMap; export declare const NODE_TO_KEY: toRawWeakMap; export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap>; /** * Weak maps for storing editor-related state. */ export declare const IS_READ_ONLY: WeakMap; export declare const IS_FOCUSED: WeakMap; export declare const IS_COMPOSING: WeakMap; export declare const EDITOR_TO_USER_SELECTION: WeakMap; /** * Weak map for associating the context `onChange` context with the plugin. */ export declare const EDITOR_TO_ON_CHANGE: WeakMap void>; export declare const EDITOR_TO_USER_MARKS: WeakMap | null>; export declare const MARK_PLACEHOLDER_SYMBOL: string;