import Vnmf from '../../index' declare module '../../index' { namespace addPhoneRepeatCalendar { interface Option { /** Organisation */ title: string /** It's starting at the beginning. unix Time stamp (1970Year1Month1Number of seconds passed from start) */ startTime: number /** Is the full-day event * @default false */ allDay?: boolean /** Description of events */ description?: string /** Organisation */ location?: string /** It's the end of day. unix Time stamp,Default is the same as start time */ endTime?: string /** This function is EXPERIMENTAL. * @default true */ alarm?: boolean /** Synchronising folder,Unit seconds,Default 0 It's an initial reminder. * @default 0 */ alarmOffset?: number /** Repeat cycle,Default month Monthly repeat * @default "month" */ repeatInterval?: string /** Repeating the end of cycle unix Time stamp,Do not fill in. Repeat all the time. */ repeatEndTime?: number /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } namespace addPhoneCalendar { interface Option { /** Organisation */ title: string /** It's starting at the beginning. unix Time stamp (1970Year1Month1Number of seconds passed from start) */ startTime: number /** Is the full-day event * @default false */ allDay?: boolean /** Description of events */ description?: string /** Organisation */ location?: string /** It's the end of day. unix Time stamp,Default is the same as start time */ endTime?: string /** This function is EXPERIMENTAL. * @default true */ alarm?: boolean /** Synchronising folder,Unit seconds,Default 0 It's an initial reminder. * @default 0 */ alarmOffset?: number /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (res: VnmfGeneral.CallbackResult) => void } } interface VnmfStatic { /** Add duplicates to system calendar * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/calendar/wx.addPhoneRepeatCalendar.html */ addPhoneRepeatCalendar(option: addPhoneRepeatCalendar.Option): Promise /** Add an event to the system calendar * @supported weapp, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/calendar/wx.addPhoneCalendar.html */ addPhoneCalendar(option: addPhoneCalendar.Option): Promise } }