import { Editor } from '@tiptap/core';
import { EditorView } from '@tiptap/pm/view';
import { CxTiptapCodeBlockDocRequestEvent } from '../../../../../events/src/events.ts';

/**
 * Registers the ProseMirror `getPos` callback for a code-block node view host.
 * Not stored on the element — avoids TipTap-specific surface on the custom element.
 */
export declare function registerCodeBlockNodeHost(host: HTMLElement, getPos: () => number | undefined): void;
/**
 * Handles document mutations for `cx-rich-text-code-block` requests (captured on the editor view).
 */
export declare function handleCodeBlockDocRequest(view: EditorView, event: CxTiptapCodeBlockDocRequestEvent, editor: Editor): boolean;
