export interface ImagePickerOptions { /** * max images to be selected, defaults to 15. If this is set to 1, upon selection of a single image, the plugin will return it. */ maximumImagesCount?: number; /** * Max width to allow images to be */ width?: number; /** * Max height to allow images to be */ height?: number; /** * Quality of images, defaults to 100 */ quality?: number; /** * Output type, defaults to 0 (FILE_URI). */ outputType?: number; } /** * @name Image Picker * @description * Cordova Plugin For Multiple Image Selection * * Requires Cordova plugin: `cordova-plugin-image-picker`. * For more info, please see the https://github.com/wymsee/cordova-imagePicker * * @usage * ```typescript * import { ImagePicker } from 'ionic-native'; * * * * ImagePicker.getPictures(options).then((results) => { * for (var i = 0; i < results.length; i++) { * console.log('Image URI: ' + results[i]); * } * }, (err) => { }); * ``` * @interfaces * ImagePickerOptions */ export declare class ImagePicker { /** * Pick pictures from the library. * @param {ImagePickerOptions} options * @returns {Promise} Returns a Promise that resolves the image file URI * otherwise rejects with an error. */ static getPictures(options: ImagePickerOptions): Promise; /** * Check if we have permission to read images * @returns {Promise} Returns a promise that resolves with a boolean that indicates whether we have permission */ static hasReadPermission(): Promise; /** * Request permission to read images * @returns {Promise} */ static requestReadPermission(): Promise; }