UNPKG

@tef-novum/webview-bridge

Version:

JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.

12 lines (11 loc) 770 B
import { NativeAppResponsePayload } from './post-message'; export declare const requestContact: ({ filter, }?: { filter?: "phone" | "email" | undefined; }) => Promise<NativeAppResponsePayload<'GET_CONTACT_DATA'>>; export declare const fetchContactsByPhone: (phoneNumbers: ReadonlyArray<string>) => Promise<NativeAppResponsePayload<'FETCH_CONTACTS_DATA'>>; export declare const fetchPhoneNumbers: () => Promise<NativeAppResponsePayload<'FETCH_PHONE_NUMBERS'>>; export declare const updatePhoneNumbers: (phoneNumbers: ReadonlyArray<{ id: string; value: string; }>) => Promise<NativeAppResponsePayload<'UPDATE_PHONE_NUMBERS'>>; export declare const addOrEditContact: (phoneNumber: string) => Promise<NativeAppResponsePayload<'ADD_OR_EDIT_CONTACT'>>;