/** * @name Instagram * @description Share a photo with the instagram app * * @usage * ``` * import {Instagram} from 'ionic-native'; * * Instagram.share('data:image/png;uhduhf3hfif33', 'Caption') * .then(() => console.log('Shared!')) * .catch((error: any) => console.error(error)); * * ``` */ export declare class Instagram { /** * Detect if the Instagram application is installed on the device. * * @returns {Promise} Returns a promise that returns a boolean value if installed, or the app version on android */ static isInstalled(): Promise; /** * Share an image on Instagram * Note: Instagram app stopped accepting pre-filled captions on both iOS and Android. As a work-around, the caption is copied to the clipboard. You have to inform your users to paste the caption. * * @param canvasIdOrDataUrl The canvas element id or the dataURL of the image to share * @param caption The caption of the image * @returns {Promise} Returns a promise that resolves if the image was shared */ static share(canvasIdOrDataUrl: string, caption?: string): Promise; /** * Share a library asset or video * @param assetLocalIdentifier A local fileURI * @returns {Promise} Returns a promise that resolves if the image was shared */ static shareAsset(assetLocalIdentifier: string): Promise; }