/** * The Contacts layer, over Google's People API. * * Everything that touches `people_v1` lives here so the rest of the codebase * works with the clean types from `./types.js`. The scope gate is in * `AccountClientCache`, which every function below goes through. * * Two things about this API are unlike the others and both bite silently: * * 1. `searchContacts` reads a server-side cache that has to be WARMED with an * empty query first. Skip the warm-up and the first search of a session * comes back empty — not an error, just nothing, which reads exactly like * "you have no contacts called that". * * 2. `updateContact` is a REPLACE of the fields named in `updatePersonFields`, * guarded by an `etag`. Name a field and omit its value and you have just * deleted it. */ import { type people_v1 } from '@googleapis/people'; import type { AccountId } from '../core/errors.js'; import type { ContactInfo, ContactListPage, ContactSearchResult, ContactWriteRequest } from './types.js'; /** Resolves an account reference (email or alias) and returns a ready client. */ export declare function contactsFor(reference: AccountId): Promise<{ email: AccountId; api: people_v1.People; }>; /** Searches one account's contacts. Throws on failure. */ export declare function searchContacts(reference: AccountId, query: string, maxResults?: number): Promise; /** Searches every configured account's contacts and merges them by name. */ export declare function searchAllContacts(query: string, maxResults?: number): Promise; export declare function getContact(reference: AccountId, resourceName: string): Promise; export declare function listContacts(reference: AccountId, pageSize?: number, pageToken?: string): Promise; export declare function createContact(reference: AccountId, request: ContactWriteRequest): Promise; export declare function updateContact(reference: AccountId, resourceName: string, request: ContactWriteRequest): Promise; //# sourceMappingURL=client.d.ts.map