/** * This code was generated by "react-native codegen-lib-harmony" */ import { Tag } from "@rnoh/react-native-openharmony/ts" export namespace ImagePicker { export const NAME = 'ImagePicker' as const export type ImagePickerCustomButtonOptions = {name?: string, title?: string} export type ImagePickerStorageOptions = {skipBackup?: boolean, path?: string, cameraRoll?: boolean, waitUntilSaved?: boolean} export type ImagePickerPermissionDeniedOptions = {title: string, text: string, reTryTitle: string, okTitle: string} export type ImagePickerOptions = {title?: string, cancelButtonTitle?: string, takePhotoButtonTitle?: string, chooseFromLibraryButtonTitle?: string, chooseWhichLibraryTitle?: string, customButtons?: ImagePickerCustomButtonOptions[], cameraType?: string, mediaType?: string, maxWidth?: number, maxHeight?: number, quality?: number, videoQuality?: string, durationLimit?: number, rotation?: number, allowsEditing?: boolean, noData?: boolean, storageOptions?: ImagePickerStorageOptions, permissionDenied?: ImagePickerPermissionDeniedOptions, tintColor?: Object} export type ImagePickerResponse = {customButton: string, didCancel: boolean, error: string, data: string, uri: string, origURL?: string, isVertical: boolean, width: number, height: number, fileSize: number, type?: string, fileName?: string, path?: string, latitude?: number, longitude?: number, timestamp?: string, originalRotation?: number} export interface Spec { launchCamera(options: ImagePickerOptions, callback: (response: ImagePickerResponse) => void): void; launchImageLibrary(options: ImagePickerOptions, callback: (response: ImagePickerResponse) => void): void; showImagePicker(options: ImagePickerOptions, callback: (response: ImagePickerResponse) => void): void; } }