one
Version:
One is a React framework for web, iOS, and Android apps.
19 lines • 1.15 kB
TypeScript
import type { ContactChanges, ContactInfo, ContactInput, ContactPostalAddress, ContactPostalAddressInput, ContactsPermissionStatus } from '../specs/OneContacts.nitro';
export type { ContactChanges, ContactInfo, ContactInput, ContactPostalAddress, ContactPostalAddressInput, ContactsPermissionStatus };
declare function getPermissionStatus(): ContactsPermissionStatus;
declare function requestPermission(): Promise<ContactsPermissionStatus>;
declare function pickContact(): Promise<ContactInfo | undefined>;
declare function search(name: string, limit?: number): Promise<ContactInfo[]>;
declare function create(input: ContactInput): Promise<string>;
declare function update(identifier: string, changes: ContactChanges): Promise<ContactInfo>;
declare function deleteContact(identifier: string): Promise<void>;
export declare const Contacts: Readonly<{
getPermissionStatus: typeof getPermissionStatus;
requestPermission: typeof requestPermission;
pickContact: typeof pickContact;
search: typeof search;
create: typeof create;
update: typeof update;
delete: typeof deleteContact;
}>;
//# sourceMappingURL=index.native.d.ts.map