import { Calendar } from '@ionic-native/calendar' ; export interface CalendarOptions { /**
     * Id
     */ id ? : string ; /**
     *
     */ firstReminderMinutes ? : number ; /**
     *
     */ secondReminderMinutes ? : number ; /**
     * Recurrence. Can be set to `daily`, `weekly`, `monthly` or `yearly`
     */ recurrence ? : string ; /**
     * Recurrence interval. Valid only when `recurrence` option is set.
     */ recurrenceInterval ? : number ; /**
     * Recurrence end date. Valid only when `recurrence` option is set.
     */ recurrenceEndDate ? : Date ; /**
     * Calendar name. Ths is supported by `iOS` only.
     */ calendarName ? : string ; /**
     * Calendar id
     */ calendarId ? : number ; /**
     * URL
     */ url ? : string ; } export class CalendarMock extends Calendar { hasReadWritePermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } returns { Promise < boolean > } hasReadPermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } returns { Promise < boolean > } hasWritePermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } returns { Promise < any > } requestWritePermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } returns { Promise < any > } requestReadPermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } returns { Promise < any > } requestReadWritePermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string | Object } nameOrOptions returns { Promise < any > } createCalendar ( nameOrOptions ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } name returns { Promise < any > } deleteCalendar ( name ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } return { CalendarOptions } getCalendarOptions ( ) { let calendarOptions ; return calendarOptions ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate returns { Promise < any > } createEvent ( title ? , location ? , notes ? , startDate ? , endDate ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { CalendarOptions } options returns { Promise < any > } createEventWithOptions ( title ? , location ? , notes ? , startDate ? , endDate ? , options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate returns { Promise < any > } createEventInteractively ( title ? , location ? , notes ? , startDate ? , endDate ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { CalendarOptions } options returns { Promise < any > } createEventInteractivelyWithOptions ( title ? , location ? , notes ? , startDate ? , endDate ? , options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate returns { Promise < any > } findEvent ( title ? , location ? , notes ? , startDate ? , endDate ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { CalendarOptions } options returns { Promise < any > } findEventWithOptions ( title ? , location ? , notes ? , startDate ? , endDate ? , options ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { Date } startDate param { Date } endDate returns { Promise < any > } listEventsInRange ( startDate , endDate ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } returns { Promise < any > } listCalendars ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } returns { Promise < any > } findAllEventsInNamedCalendar ( calendarName ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { string } newTitle param { string } newLocation param { string } newNotes param { Date } newStartDate param { Date } newEndDate return modifyEvent ( title ? , location ? , notes ? , startDate ? , endDate ? , newTitle ? , newLocation ? , newNotes ? , newStartDate ? , newEndDate ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { string } newTitle param { string } newLocation param { string } newNotes param { Date } newStartDate param { Date } newEndDate param { CalendarOptions } filterOptions param { CalendarOptions } newOptions return modifyEventWithOptions ( title ? , location ? , notes ? , startDate ? , endDate ? , newTitle ? , newLocation ? , newNotes ? , newStartDate ? , newEndDate ? , filterOptions ? , newOptions ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate return deleteEvent ( title ? , location ? , notes ? , startDate ? , endDate ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } title param { string } location param { string } notes param { Date } startDate param { Date } endDate param { string } calendarName return deleteEventFromNamedCalendar ( title ? , location ? , notes ? , startDate ? , endDate ? , calendarName ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { Date } date return { Promise < any > } openCalendar ( date ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } }