import { CreateWorkflowRequest, ExecuteWorkflowRequest, WorkflowExecutionResult, LabelingWorkflow as LabelingWorkflowType, WorkflowExecution as WorkflowExecutionType, LabelingWorkflowList, WorkflowExecutionList } from '../types/workflow-types.js'; /** * Labeling Workflow Service * * Orchestrates end-to-end labeling workflows with multiple steps * * Features: * - Define multi-step labeling workflows * - Auto-execute workflows based on triggers * - Track execution progress * - Error handling and retry logic * - Conditional execution * - Database persistence with TypeORM */ export declare class LabelingWorkflowService { private datasetIntegration; private externalDataSource; private aiPredictionService; private getDatasetIntegration; private getExternalDataSource; private getAIPredictionService; /** * Convert Entity to GraphQL Type */ private toWorkflowType; private toExecutionType; /** * Create a new labeling workflow */ createLabelingWorkflow(input: CreateWorkflowRequest, context: ResolverContext): Promise; /** * Execute a workflow */ executeLabelingWorkflow(input: ExecuteWorkflowRequest, context: ResolverContext): Promise; /** * Get workflow details */ labelingWorkflow(workflowId: string, context: ResolverContext): Promise; /** * List all workflows */ labelingWorkflows(projectId: number, context: ResolverContext): Promise; /** * Get execution status */ workflowExecution(executionId: string, context: ResolverContext): Promise; /** * List executions for a workflow */ workflowExecutions(workflowId: string, context: ResolverContext): Promise; /** * Pause a workflow */ pauseLabelingWorkflow(workflowId: string, context: ResolverContext): Promise; /** * Resume a workflow */ resumeLabelingWorkflow(workflowId: string, context: ResolverContext): Promise; private executeWorkflowAsync; private executeStep; private executeImportDataStep; private executeGeneratePredictionsStep; private executeWaitForAnnotationsStep; private executeSyncAnnotationsStep; private executeValidateQualityStep; private executeNotificationStep; private evaluateCondition; private generateExecutionSummary; }