import { DataEntity } from '@terascope/core-utils'; import { Context, ExecutionConfig, Slice, SliceAnalyticsData, SlicerOperationLifeCycle, WorkerOperationLifeCycle, OpAPI } from '../interfaces/index.js'; import { APICore, OperationAPIType } from '../operations/index.js'; export interface ExecutionContextConfig { context: Context; executionConfig: ExecutionConfig; assetIds?: string[]; } export interface SlicerOperations extends Set { } export interface WorkerOperations extends Set { } /** event handlers that should be cleaned up */ export interface EventHandlers { [eventName: string]: (...args: any[]) => void; } export interface JobAPIInstance { instance: APICore; opAPI?: OpAPI; type: OperationAPIType; } export interface JobAPIInstances { [name: string]: JobAPIInstance; } export type WorkerStatus = 'initializing' | 'idle' | 'flushing' | 'running' | 'shutdown'; export type SliceStatus = 'starting' | 'started' | 'completed' | 'failed' | 'flushed'; export interface RunSliceResult { status: SliceStatus; analytics?: SliceAnalyticsData; results: DataEntity[]; retry_count?: number; } export type WorkerSliceState = { status: SliceStatus; /** The current operation position */ position: number; slice: Slice; analytics?: SliceAnalyticsData; retry_count?: number; }; //# sourceMappingURL=interfaces.d.ts.map