import type { Node } from 'prosemirror-model'; import type { EditorState } from 'prosemirror-state'; import type { PopperProps } from '@material-ui/core'; export declare type ActionProps = { stateId: any; viewId: string | null; }; export declare function getFigure(editorState: EditorState | null): { figure: { pos: number; start: number; depth: number; node: Node; } | undefined; figcaption: import("@curvenote/prosemirror-utils").NodeWithPos | undefined; }; declare type NodeOrNodeFunction = (() => Element | null) | Element | null; export declare type AnchorCache = { anchorEl: PopperProps['anchorEl']; setNode: (node: NodeOrNodeFunction) => void; getNode: () => Element | null; }; export declare function createPopperLocationCache(): AnchorCache; export {};