import { Printer } from '@ionic-native/printer' ; export interface PrintOptions { /**
     * The name of the print job and the document
     */ name ? : string ; /**
     * The network URL of the printer.
     * Only supported on iOS.
     */ printerId ? : string ; /**
     * Specifies the duplex mode to use for the print job.
     * Either double-sided (duplex:true) or single-sided (duplex:false).
     * Double-sided by default.
     * Only supported on iOS
     */ duplex ? : boolean ; /**
     * The orientation of the printed content, portrait or landscape
     * Portrait by default.
     */ landscape ? : boolean ; /**
     * If your application only prints black text, setting this property to true can result in better performance in many cases.
     * False by default.
     */ grayscale ? : boolean ; /**
     * The Size and position of the print view
     */ bounds ? : number [ ] | any ; } export class PrinterMock extends Printer { returns { Promise < boolean > } isAvailable ( ) { let response = true ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; return { Promise < any > } check ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } pick ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param content { string | HTMLElement } param options { PrintOptions } returns { Promise < any > } print ( content , options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }