import download from 'image-downloader'; export type Input = { data: Buffer | Blob; contentType: string | null; }; export type Base64MimeTypeResult = { mime: string; data: string; raw: string; }; export type PullBrowserOptions = { url: string }; export type PullNodeOptions = Omit & Partial>; export function parseMimeType(base64: string): Base64MimeTypeResult | null; export function parseBase64(filename: string): Promise; export function parseBase64(image: HTMLImageElement): Promise; export function pull(options: PullBrowserOptions): Promise; export function pull(options: PullNodeOptions): Promise; export function resize(image: HTMLImageElement, width: number, height?: number): Promise; export function resize(filename: string, width: number, height?: number): Promise;