import type { DeferredJobsApiClient } from './api'; import { type Fetch } from './api'; import { Accounts, Billing, CampaignRecipients, Campaigns, Contacts, ContactsExports, ContactTagGroups, ContactTags, Coverage, CoverageIntegrations, Jobs, Licenses, NewsroomCategories, NewsroomContacts, NewsroomDomains, NewsroomGalleries, NewsroomHub, NewsroomLanguages, NewsroomPrivacyRequests, Newsrooms, NewsroomSubscriptions, NewsroomThemes, NewsroomWebhooks, NotificationSubscriptions, PricingTables, SenderAddresses, Snippets, Stories, Subscriptions, Templates } from './endpoints'; import type { ApiError } from './http'; import { type HeadersMap } from './http'; export interface ClientOptions { accessToken: string; baseUrl?: string; headers?: HeadersMap; fetch?: Fetch; onError?: (error: ApiError) => void; } export interface Client { api: DeferredJobsApiClient; accounts: Accounts.Client; billing: Billing.Client; campaigns: Campaigns.Client; campaignRecipients: CampaignRecipients.Client; contacts: Contacts.Client; contactTags: ContactTags.Client; contactTagGroups: ContactTagGroups.Client; contactsExports: ContactsExports.Client; coverage: Coverage.Client; coverageIntegrations: CoverageIntegrations.Client; jobs: Jobs.Client; licenses: Licenses.Client; newsrooms: Newsrooms.Client; newsroomCategories: NewsroomCategories.Client; newsroomContacts: NewsroomContacts.Client; newsroomLanguages: NewsroomLanguages.Client; newsroomThemes: NewsroomThemes.Client; newsroomWebhooks: NewsroomWebhooks.Client; newsroomPrivacyRequests: NewsroomPrivacyRequests.Client; newsroomDomains: NewsroomDomains.Client; newsroomGalleries: NewsroomGalleries.Client; newsroomHub: NewsroomHub.Client; newsroomSubscriptions: NewsroomSubscriptions.Client; notificationSubscriptions: NotificationSubscriptions.Client; pricingTables: PricingTables.Client; senderAddresses: SenderAddresses.Client; stories: Stories.Client; snippets: Snippets.Client; subscriptions: Subscriptions.Client; templates: Templates.Client; } export declare function createClient({ accessToken, baseUrl, headers, fetch, onError, }: ClientOptions): Client;