import type { ProgressPromise } from '@prezly/progress-promise'; import type { DeferredJobsApiClient } from '../../api'; import type { CoverageEntry, SelectionValue } from '../../types'; import type { CreateOptions, CreateRequest, ListOptions, ListResponse, Scope, SearchOptions, UpdateRequest } from './types'; type CoverageId = CoverageEntry['uuid'] | CoverageEntry['id']; export type Client = ReturnType; export declare function createClient(api: DeferredJobsApiClient): { list: (options?: ListOptions, scope?: Scope) => Promise; search: (options?: SearchOptions, scope?: Scope) => Promise; get: (id: CoverageId, includeDeleted?: boolean) => Promise; getByExternalReferenceId: (externalReferenceId: string, options?: { includeDeleted?: boolean; }) => Promise; create: (payload: CreateRequest, { enrich }?: CreateOptions) => Promise; update: (id: CoverageId, payload: UpdateRequest) => Promise; delete: (id: CoverageId) => Promise; bulkDelete: (options: Partial<{ selection: SelectionValue; query: string; }>) => ProgressPromise<{ records_deleted_number: number; }>; }; export {};