import { Node as ProseMirrorNode } from '@tiptap/pm/model';
import { Plugin } from '@tiptap/pm/state';
import { DBlockRuntimeState } from './dblock-runtime';

type MediaCandidate = {
    type: 'img';
    src: string;
    from: number;
    to: number;
} | {
    type: 'iframe';
    src: string;
    from: number;
    to: number;
};
interface MediaPluginState {
    version: number;
    shouldScan: boolean;
}
export declare const getDBlockMediaCandidate: (node: ProseMirrorNode, position: number) => MediaCandidate | null;
export declare const createDBlockMediaConversionPlugin: (getRuntimeState?: () => DBlockRuntimeState) => Plugin<MediaPluginState>;
export {};
