UNPKG

profile-plus

Version:

### IOS

20 lines (19 loc) 760 B
import { BackendProvider } from 'lincd-server-utils/utils/BackendProvider'; import { ImageObject } from 'lincd-schema/shapes/ImageObject'; import { Area } from 'react-easy-crop'; export default class ProfilePlusBackendProvider extends BackendProvider { private static ALLOWED_EXTENSIONS; setupBeforeControllers(): void; loadProfilePicture(property: string): any; uploadImage(): Promise<unknown>; cropImageExec({ width, height, x, y, fileName, imageUrl }: { width: any; height: any; x: any; y: any; fileName: any; imageUrl: any; }): Promise<ImageObject>; cropImage(imageUrl: string, croppedArea: Area, property: string, fileName: string): Promise<string>; private compressImage; }