import { IonicNativePlugin } from '@ionic-native/core'; export interface DocumentViewerOptions { title?: string; documentView?: { closeLabel: string; }; navigationView?: { closeLabel: string; }; email?: { enabled: boolean; }; print?: { enabled: boolean; }; openWith?: { enabled: boolean; }; bookmarks?: { enabled: boolean; }; search?: { enabled: boolean; }; autoClose?: { onPause: boolean; }; } /** * @name Document Viewer * @description * This plugin offers a slim API to view PDF files which are either stored in the apps assets folder (/www/*) or in any other file system directory available via the cordova file plugin. * * @usage * ```typescript * import { DocumentViewer } from '@ionic-native/document-viewer/ngx'; * * * constructor(private document: DocumentViewer) { } * * ... * const options: DocumentViewerOptions = { * title: 'My PDF' * } * * this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options) * * ``` * * @interfaces * DocumentViewerOptions */ export declare class DocumentViewerOriginal extends IonicNativePlugin { /** * Displays the email composer pre-filled with data. * * @returns {Promise} Resolves promise when the EmailComposer has been opened */ getSupportInfo(): Promise; /** * Check if the document can be shown * * @param url {string} Url to the file * @param contentType {string} Content type of the file * @param options {DocumentViewerOptions} options * @param [onPossible] {Function} * @param [onMissingApp] {Function} * @param [onImpossible] {Function} * @param [onError] {Function} */ canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void; /** * Opens the file * * @param url {string} Url to the file * @param contentType {string} Content type of the file * @param options {DocumentViewerOptions} options * @param [onShow] {Function} * @param [onClose] {Function} * @param [onMissingApp] {Function} * @param [onError] {Function} */ viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void; } export declare const DocumentViewer: DocumentViewerOriginal;