import { Plugin } from 'prosemirror-state'; import { DecorationSet } from 'prosemirror-view'; import { RteFeatureImpl } from '../feature'; import { RteInstanceImpl } from '../instance'; import { RteFragment } from '../document'; export interface RteFileHandlerConfig { handleFiles: (files: File[]) => RteFragment | Promise | null; } export declare class RteFileHandlerFeatureImpl extends RteFeatureImpl { readonly config: RteFileHandlerConfig; name: string; constructor(config: RteFileHandlerConfig); getPlugins(rte: RteInstanceImpl): ({ priority: number; featureName: string; value: Plugin; } | { priority: number; featureName: string; value: Plugin; })[]; } export declare const RteFileHandlerFeature: { new (config: RteFileHandlerConfig): {}; };