UNPKG

@etherna/sdk-js

Version:

Etherna SDKs for operations on the network

20 lines 650 B
import type { ImageType } from "../schemas/image"; export {}; declare global { interface HTMLCanvasElement { msToBlob(): Blob; } } /** * Resize an image * * @param imageBlob Image file to resize * @param toWidth Scaled width * @param quality Image quality (0-100) * @returns The resized image blob */ export declare const resizeImage: (imageBlob: File | Blob, toWidth: number, quality?: number) => Promise<Blob>; export declare const isImageTypeSupported: (type: ImageType) => boolean; export declare const isAvifSupported: () => boolean; export declare const isWebpSupported: () => boolean; //# sourceMappingURL=image.d.ts.map