UNPKG

kwikid-camera

Version:
25 lines (24 loc) 1.28 kB
export declare function flipImageHorizontally(base64Image: string): string; export declare function getDevicesList(): Promise<any>; export declare function getDeviceId(activeDeviceId: string): Promise<string>; export declare function getImageFromBase64(base64String: string): Promise<HTMLImageElement>; export declare function getBase64FromImage(image: HTMLImageElement): Promise<string>; export declare function getBase64FromImageFile(imageFile: File): Promise<string>; export declare function getScaledImageFromVideo(video: HTMLVideoElement, flipped: boolean): Promise<{ image: HTMLImageElement; imageBase64: string; }>; export declare function getCroppedImage(image: HTMLImageElement, requiredWidth: number, requiredHeight: number): Promise<{ image: HTMLImageElement; imageBase64: string; }>; export declare function getCroppedImageFromMask(image: HTMLImageElement, leftShift: number, topShift: number, requiredWidth: number, requiredHeight: number): Promise<{ image: HTMLImageElement; imageBase64: string; }>; export declare function getCorrectImageFormat(image: any): string; export declare function getWatermarkedImage(image: HTMLImageElement, data: any): Promise<{ image: HTMLImageElement; imageBase64: string; errorMessage?: string; }>;