import { PluginKey } from "prosemirror-state"; import { EditorView } from "prosemirror-view"; import { Node as PMNode, Schema } from "prosemirror-model"; import { imageAlign, ImagePluginSettings } from "./types"; export declare const dataURIToFile: (dataURI: string, name: string) => File; export declare const imagePluginKey: PluginKey; export type ImageUploadReturn = { url: string; alt?: string; }; export declare const startImageUploadFn: (view: EditorView, uploadFile: () => Promise, pos?: number) => Promise; export declare const startImageUpload: (view: EditorView, file: File, alt: string, pluginSettings: ImagePluginSettings, schema: Schema, pos?: number) => void; export declare const generateChangeAlignment: (align: imageAlign, getPos: () => number | undefined, view: EditorView, node: PMNode) => () => void; export declare const clamp: (min: number, value: number, max: number) => number; export declare const fetchImageAsBase64: (url: string) => Promise; export interface Store { get: (key: string) => string | undefined; set: (key: string, value: string) => void; } export declare const localStorageCache: (keyPrefix: string) => Store; export declare const imageCache: (cache: Store, shortStore?: Map>) => (downloadImage: (url: string) => Promise) => (url: string) => Promise; //# sourceMappingURL=utils.d.ts.map