import { Camera } from '@ionic-native/camera' ; export interface CameraOptions { /** Picture quality in range 0-100. Default is 50 */ quality ? : number ; /**
     * Choose the format of the return value.
     * Defined in Camera.DestinationType. Default is FILE_URI.
     *      DATA_URL : 0,   Return image as base64-encoded string,
     *      FILE_URI : 1,   Return image file URI,
     *      NATIVE_URI : 2  Return image native URI
     *          (e.g., assets-library:// on iOS or content:// on Android)
     */ destinationType ? : number ; /**
     * Set the source of the picture.
     * Defined in Camera.PictureSourceType. Default is CAMERA.
     *      PHOTOLIBRARY : 0,
     *      CAMERA : 1,
     *      SAVEDPHOTOALBUM : 2
     */ sourceType ? : number ; /** Allow simple editing of image before selection. */ allowEdit ? : boolean ; /**
     * Choose the returned image file's encoding.
     * Defined in Camera.EncodingType. Default is JPEG
     *      JPEG : 0    Return JPEG encoded image
     *      PNG : 1     Return PNG encoded image
     */ encodingType ? : number ; /**
     * Width in pixels to scale image. Must be used with targetHeight.
     * Aspect ratio remains constant.
    */ targetWidth ? : number ; /**
     * Height in pixels to scale image. Must be used with targetWidth.
     * Aspect ratio remains constant.
     */ targetHeight ? : number ; /**
     * Set the type of media to select from. Only works when PictureSourceType
     * is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in Camera.MediaType
     *      PICTURE: 0      allow selection of still pictures only. DEFAULT.
     *          Will return format specified via DestinationType
     *      VIDEO: 1        allow selection of video only, WILL ALWAYS RETURN FILE_URI
     *      ALLMEDIA : 2    allow selection from all media types
     */ mediaType ? : number ; /** Rotate the image to correct for the orientation of the device during capture. */ correctOrientation ? : boolean ; /** Save the image to the photo album on the device after capture. */ saveToPhotoAlbum ? : boolean ; /**
     * Choose the camera to use (front- or back-facing).
     * Defined in Camera.Direction. Default is BACK.
     *      BACK: 0
     *      FRONT: 1
     */ cameraDirection ? : number ; /** iOS-only options that specify popover location in iPad. Defined in CameraPopoverOptions. */ popoverOptions ? : CameraPopoverOptions ; } /**
 * iOS-only parameters that specify the anchor element location and arrow direction
 * of the popover when selecting images from an iPad's library or album.
 */ export interface CameraPopoverOptions { x : number ; y : number ; width : number ; height : number ; /**
     * Direction the arrow on the popover should point. Defined in Camera.PopoverArrowDirection
     * Matches iOS UIPopoverArrowDirection constants.
     *      ARROW_UP : 1,
     *      ARROW_DOWN : 2,
     *      ARROW_LEFT : 4,
     *      ARROW_RIGHT : 8,
     *      ARROW_ANY : 15
     */ arrowDir : number ; } export class CameraMock extends Camera { DestinationType : { DATA_URL : number ; FILE_URI : number ; NATIVE_URI : number ; } ; /**
     * Convenience constant
     */ EncodingType : { JPEG : number ; PNG : number ; } ; /**
     * Convenience constant
     */ MediaType : { PICTURE : number ; VIDEO : number ; ALLMEDIA : number ; } ; /**
     * Convenience constant
     */ PictureSourceType : { PHOTOLIBRARY : number ; CAMERA : number ; SAVEDPHOTOALBUM : number ; } ; /**
     * Convenience constant
     */ PopoverArrowDirection : { ARROW_UP : number ; ARROW_DOWN : number ; ARROW_LEFT : number ; ARROW_RIGHT : number ; ARROW_ANY : number ; } ; /**
     * Convenience constant
     */ Direction : { BACK : number ; FRONT : number ; } ; param { CameraOptions } options returns { Promise < any > } getPicture ( options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } returns { Promise < any > } cleanup ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } }