import { ImgRef } from "./imgref"; type ErrorCode = "noimg" | "notpng" | "invalidfile"; type ImgCallback = (imgref: ImgRef) => any; type ErrorCallback = (text: string, id: ErrorCode) => any; export declare var lastref: ImgRef | null; export declare function listen(func: ImgCallback, errorfunc?: ErrorCallback, dragndrop?: boolean): void; export declare function unlisten(func: ImgCallback): void; /** * currently used in multiple document situations (iframe), might be removed in the future */ export declare function triggerPaste(img: ImgRef): void; export declare function startDragNDrop(): void; export declare function start(): void; export declare function fileDialog(): HTMLInputElement; export {}; //# sourceMappingURL=pasteinput.d.ts.map