/**
 * Dispatched by `cx-rich-text-image-viewer` so the TipTap image extension plugin can apply document changes
 * (`setNodeMarkup`, upload retry, etc.) without the viewer holding an `Editor` reference.
 */
export type CxTiptapImageDocRequestDetail = {
    attrs: Record<string, unknown>;
    operation: 'merge-attrs';
} | {
    height: string;
    operation: 'resize-end';
    width: string;
} | {
    height: number;
    operation: 'fix-size';
    width: number;
} | {
    operation: 'retry-remote-upload';
};
export type CxTiptapImageDocRequestEvent = CustomEvent<CxTiptapImageDocRequestDetail>;
declare global {
    interface GlobalEventHandlersEventMap {
        'cx-tiptap-image-doc-request': CxTiptapImageDocRequestEvent;
    }
}
