import { type IBaseAdapter } from '@unchainedshop/utils';
import type { WorkResult } from '@unchainedshop/core-worker';
import type { ModuleOptions, Modules } from '../modules.ts';
import type { Services } from '../services/index.ts';
import type { BulkImporter } from '../bulk-importer/index.ts';
import type { BulkExporter } from '../bulk-exporter/index.ts';
export type IWorkerAdapter = IBaseAdapter & {
type: string;
external: boolean;
maxParallelAllocations?: number;
doWork: (input: Input, unchainedAPI: {
modules: Modules;
services: Services;
bulkImporter: BulkImporter;
options: ModuleOptions;
bulkExporter: BulkExporter;
}, workId: string) => Promise>;
};
export declare const WorkerAdapter: Omit, 'key' | 'label' | 'type' | 'version'>;