import type { ProgressPromise } from '@prezly/progress-promise'; import type { DeferredJobsApiClient } from '../../api'; import type { BulkDeletePayload, Campaign, Pitch, Story } from '../../types'; import type { CreateRequest, ListOptions, ListResponse, PitchResponse, Recipient, UpdateRequest } from './types'; export type Client = ReturnType; export declare function createClient(api: DeferredJobsApiClient): { list: (options?: ListOptions) => Promise; search: (options?: ListOptions) => Promise; get: (id: Pitch['id']) => Promise; create: (payload?: CreateRequest) => Promise; duplicate: (id: Pitch['id']) => Promise; followupOnPitch: (id: Pitch['id']) => Promise; followupOnCampaign: (id: Campaign['id'], recipient: Recipient) => Promise; createSelfPitch: (id: Story['id'] | Story['uuid']) => Promise; update: (id: Pitch['id'], payload: UpdateRequest) => Promise; send: (id: Pitch['id']) => Promise; unschedule: (id: Pitch['id']) => Promise; delete: (id: Pitch['id']) => Promise; bulkDelete: (payload: BulkDeletePayload) => ProgressPromise<{ records_deleted_number: number; }>; };