import { ProgressPromise } from '@prezly/progress-promise'; import type { Params, ParamsWithPayload } from '../http'; import type { ApiClient } from './ApiClient'; export type DeferredJobsApiClient = ReturnType; export declare function createDeferredJobsApiClient(api: ApiClient): { get: (url: string, { headers, query }?: Params) => ProgressPromise; post: (url: string, { headers, payload, query }?: ParamsWithPayload) => ProgressPromise; put: (url: string, { headers, payload, query }?: ParamsWithPayload) => ProgressPromise; patch: (url: string, { headers, payload, query }?: ParamsWithPayload) => ProgressPromise; delete: (url: string, { headers, payload, query }?: ParamsWithPayload) => ProgressPromise; };