import { IonicNativePlugin } from '@ionic-native/core' ; import { Observable } from 'rxjs/Observable' ; name description usage export declare class PhotoLibrary extends IonicNativePlugin { param options { GetLibraryOptions } return { Observable < LibraryItem [ ] > } getLibrary ( options ? ) ; param options { RequestAuthorizationOptions } return { Promise < void > } requestAuthorization ( options ? ) ; return { Promise < AlbumItem [ ] > } getAlbums ( ) ; param photo { string | LibraryItem } param options { GetThumbnailOptions } return { Promise < string > } getThumbnailURL ( photo , options ? ) ; param photo { string | LibraryItem } param options { GetPhotoOptions } return { Promise < string > } getPhotoURL ( photo , options ? ) ; param photo { string | LibraryItem } param options { GetThumbnailOptions } return { Promise < Blob > } getThumbnail ( photo , options ? ) ; param photo { string | LibraryItem } param options { GetPhotoOptions } return { Promise < Blob > } getPhoto ( photo , options ? ) ; param url { string } param album { AlbumItem | string } param options { GetThumbnailOptions } return { Promise < LibraryItem > } saveImage ( url , album , options ? ) ; param url { string } param album { AlbumItem | string } return { Promise < void > } saveVideo ( url , album ) ; } hidden export interface LibraryItem { /**
     * Local id of the photo
     */ id : string ; /**
     * URL of cdvphotolibrary schema.
     */ photoURL : string ; /**
     * URL of cdvphotolibrary schema.
     */ thumbnailURL : string ; fileName : string ; width : number ; height : number ; creationDate : Date ; latitude ? : number ; longitude ? : number ; albumIds ? : string [ ] ; } hidden export interface AlbumItem { /**
     * Local id of the album
     */ id : string ; title : string ; } hidden export interface GetLibraryOptions { thumbnailWidth ? : number ; thumbnailHeight ? : number ; quality ? : number ; itemsInChunk ? : number ; chunkTimeSec ? : number ; useOriginalFileNames ? : boolean ; includeAlbumData ? : boolean ; } hidden export interface RequestAuthorizationOptions { read ? : boolean ; write ? : boolean ; } hidden export interface GetThumbnailOptions { thumbnailWidth ? : number ; thumbnailHeight ? : number ; quality ? : number ; }