import { CoreMimeType, ImageSource } from '@leosingleton/fim/internals'; /** * Loads a file's contents onto an `ImageSource` instance which can then be loaded onto a canvas * @param file Image file, as a Uint8Array * @param type Mime type of the image file to load * @param callback Callback to execute once the image contents are loaded */ export declare function loadFromFileAsync(file: Uint8Array, type: CoreMimeType, callback: (image: ImageSource) => void): Promise; /** * Loads an image blob's contents onto an `ImageSource` instance which can then be loaded onto a canvas * @param blob, Image file, as a `Blob` * @param type Mime type of the image file to load * @param callback Callback to execute once the image contents are loaded */ export declare function loadFromBlobAsync(blob: Blob, callback: (image: ImageSource) => void): Promise;