import { Node as ProseMirrorNode } from '@tiptap/pm/model';

export interface DBlockViewHandle {
    id: string;
    dom: HTMLElement;
    gutterElement: HTMLElement;
    contentElement: HTMLElement;
    getPos: () => number;
    getNode: () => ProseMirrorNode;
    refresh: () => void;
    onCopyHeadingLink?: (link: string) => void;
}
export declare const registerDBlockView: (handle: DBlockViewHandle) => () => void;
export declare const getDBlockViewFromElement: (element: Element | null) => DBlockViewHandle | null;
export declare const getDBlockViewFromEventTarget: (target: EventTarget | null) => DBlockViewHandle | null;
export declare const refreshRegisteredDBlockViews: () => void;
