/** * This code was generated by "react-native codegen-lib-harmony" */ import { Tag } from "@rnoh/react-native-openharmony/ts" export namespace RNSyanImagePicker { export const NAME = 'RNSyanImagePicker' as const export type ImagePickerOption = {imageCount?: number, isRecordSelected?: boolean, isCamera?: boolean, isCrop?: boolean, CropW?: number, CropH?: number, isGif?: boolean, showCropCircle?: boolean, circleCropRadius?: number, showCropFrame?: boolean, showCropGrid?: boolean, freeStyleCropEnabled?: boolean, rotateEnabled?: boolean, scaleEnabled?: boolean, compress?: boolean, compressFocusAlpha?: boolean, minimumCompressSize?: number, quality?: number, enableBase64?: boolean, allowPickingOriginalPhoto?: boolean, allowPickingMultipleVideo?: boolean, videoMaximumDuration?: number, isWeChatStyle?: boolean, sortAscendingByModificationDate?: boolean, videoCount?: number, MaxSecond?: number, MinSecond?: number, showSelectedIndex?: boolean} export type SelectedPhoto = {width: number, height: number, uri: string, original_uri: string, type: string, size: number, base64: string} export interface Spec { showImagePicker(options: ImagePickerOption, callback: (err: null | string, photos: SelectedPhoto[]) => void): void; asyncShowImagePicker(options: ImagePickerOption): Promise; openCamera(options: ImagePickerOption, callback: (err: null | string, photos: SelectedPhoto[]) => void): void; asyncOpenCamera(options: ImagePickerOption): Promise; deleteCache(): void; removePhotoAtIndex(index: number): void; removeAllPhoto(): void; openVideoPicker(options: ImagePickerOption, callback: (err: null | string, photos: SelectedPhoto[]) => void): void; } }