import Vnmf from '../../index' declare module '../../index' { namespace chooseContact { interface Option { /** 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: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Cell phone number. */ phoneNumber: string /** _Other Organiser */ displayName: string /** Select all cell numbers of the contact(Part Android The system can only select a contact, not specific cell number.) */ phoneNumberList: string } } namespace addPhoneContact { interface Option { /** Name */ firstName: string /** Head as local file path */ photoFilePath?: string /** Nickname */ nickName?: string /** Middle Name */ middleName?: string /** Surname */ lastName?: string /** Remarks */ remark?: string /** Cell phone number. */ mobilePhoneNumber?: string /** Microsign. */ weChatNumber?: string /** Contact country */ addressCountry?: string /** Contact Address Province */ addressState?: string /** Contact City */ addressCity?: string /** Contact Address Street */ addressStreet?: string /** Contact Address Post Code */ addressPostalCode?: string /** Company */ organization?: string /** Positions */ title?: string /** Working Fax */ workFaxNumber?: string /** Working telephones */ workPhoneNumber?: string /** Corporate phone. */ hostNumber?: string /** E-mail */ email?: string /** Website */ url?: string /** Chile */ workAddressCountry?: string /** _Other Organiser */ workAddressState?: string /** _Other Organiser */ workAddressCity?: string /** Working address street */ workAddressStreet?: string /** Cannot initialise Evolution's mail component. */ workAddressPostalCode?: string /** Residential fax */ homeFaxNumber?: string /** Residential telephones */ homePhoneNumber?: string /** Country of residence address */ homeAddressCountry?: string /** Department of Residential Addresses */ homeAddressState?: string /** Residential Address City */ homeAddressCity?: string /** Residential address street */ homeAddressStreet?: string /** Postal code for residential address */ homeAddressPostalCode?: string /** 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 { /** _Other Organiser。The user can choose to use the form「_Other Organiser」or「_Other Organiser」♪ The way,Write to the mobile phone system's address book。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.chooseContact.html */ chooseContact(option: chooseContact.Option): Promise /** _Other Organiser。The user can choose to use the form「_Other Organiser」or「_Other Organiser」♪ The way,Write to the mobile phone system's address book。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html */ addPhoneContact(option: addPhoneContact.Option): Promise } }