import { LexicalCommand } from 'lexical'; import { ImagePayload } from '../nodes/image'; export type InsertImagePayload = Readonly; declare global { interface DragEvent { rangeOffset?: number; rangeParent?: Node; } } export declare const INSERT_IMAGE_COMMAND: LexicalCommand; export declare const ACCEPTABLE_IMAGE_TYPES: string[]; interface FileImageResult { file: File; result: string; asyncSrc: Promise; } export declare function useImage(): { readImages: (files: File[]) => Promise<{ file: File; result: string; asyncSrc: Promise; }[]>; getInsertImagePayload: (imageResult: FileImageResult) => Promise<{ width?: undefined; altText: string; src: string; } | { width: number; altText: string; src: string; }>; }; interface ImagePluginOptions { captionsEnabled?: boolean; } export declare function ImagesPlugin(options?: ImagePluginOptions): null; export {};