import { Node } from '@tiptap/core';
import { IpfsImageFetchPayload } from '../../types';

export interface IframeOptions {
    allowFullscreen: boolean;
    HTMLAttributes: {
        [key: string]: any;
    };
    width?: number;
    height?: number;
    ipfsImageFetchFn: (_data: IpfsImageFetchPayload) => Promise<{
        url: string;
        file: File;
    }>;
    fetchV1ImageFn: (hash: string) => Promise<ArrayBuffer | undefined>;
}
declare module '@tiptap/core' {
    interface Commands<ReturnType> {
        iframe: {
            /**
             * Add an iframe
             */
            setIframe: (options: {
                src: string;
                alt?: string;
                title?: string;
                width?: number;
                height?: number;
            }) => ReturnType;
        };
    }
}
export declare const Iframe: Node<IframeOptions, any>;
