import { RequestClient } from '@segment/actions-core'; import DDApi from '../dd-api'; import { Contact, ChannelIdentifier } from '../types'; declare class DDContactApi extends DDApi { constructor(api_host: string, client: RequestClient); getContact(idType: string, idValue: string | undefined): Promise; fetchOrCreateContact(channelIdentifier: ChannelIdentifier, data: T): Promise; upsertContact(payload: { channelIdentifier: string; emailIdentifier?: string; mobileNumberIdentifier?: string; emailType?: string; optInType?: string; updateEmailSubscription?: boolean; emailSubscriptionStatus?: string; emailResubscribe?: boolean; resubscribeWithoutChallengeEmail?: boolean; preferredLocale?: string; redirectUrlAfterChallenge?: string; updateSmsSubscription?: boolean; smsSubscriptionStatus?: string; listId?: number; dataFields?: { [k: string]: unknown; }; }): Promise; unsubscribeContact(payload: { channelIdentifier: string; emailIdentifier?: string; mobileNumberIdentifier?: string; }): Promise; } export default DDContactApi;