import type { Node } from '@atlaskit/editor-prosemirror/model'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; /** * Resolves the node to annotate for a `localId`: the node itself when it accepts an annotation * (allows the mark, or is a supported block node), otherwise its closest accepting ancestor. * Returns undefined when nothing in the ancestor chain accepts one. * * Kept in sync with the renderer implementation so both sides resolve the same node. */ export declare const resolveAnnotatableTargetFromLocalId: (state: EditorState, localId: string, opts: { supportedBlockNodes?: string[]; }) => { node: Node; pos: number; } | undefined;