import { OnDestroy, WritableSignal } from '@angular/core'; import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs'; import { AppService } from '../../services/app.service'; import { IWfWorkflowGroup } from './interfaces/IWfWorkflowGroup'; import { IWfWorkflow } from './interfaces/IWfWorkflow'; import { IStep } from './interfaces/IStep'; import { EnumWorkflowStepType } from './enums/EnumWorkflowStepType'; import { IWorkflowBranch } from './interfaces/IWorkflowBranch'; import { IWorkflowInsertPoint } from './interfaces/IWorkflowInsertPoint'; import { IFormBaseControl } from '../core-form/core-form/enum-interfaces'; import { IActorAssignment } from './interfaces/IActorAssignment'; import { IStepConfig } from './interfaces/IStepConfig'; import { AlertService } from '../alert/alert.service'; import { Router } from '@angular/router'; import { CoreFormDesignService } from '../core-form-design/core-form-design.service'; import { JsonService } from '../../services/json.service'; import { IRoutingStep } from './interfaces/IRoutingStep'; import { FormGroup } from '@angular/forms'; import { IWorkflowSchemaTable } from './interfaces/IWorkflowSchema'; import { IGenerateWorkflowRoutingRequest } from './interfaces/IGenerateWorkflowRoutingRequest'; import { CoreParamControlService } from '../core-param-control/core-param-control.service'; import { IIdsRequest } from '../../interfaces/IIdsRequest'; import { IInitialDebugSubmitRequest } from './interfaces/IInitialDebugSubmitRequest'; import { AppConfigService } from '../../services/app-config.service'; import { IRenderWorkflowEmailRequest } from './interfaces/IRenderWorkflowEmailRequest'; import * as i0 from "@angular/core"; export declare class CoreWorkflowService implements OnDestroy { private appService; private alertService; private fds; destroyed$: Subject; js: JsonService; acs: AppConfigService; coreParamControlService: CoreParamControlService; private readonly invalidStepKeys; $workflowDbSchema: WritableSignal; $loading: WritableSignal; $allGroups: WritableSignal; $currentGroup: WritableSignal; $currentFlow: WritableSignal; $currentStep: WritableSignal; $availableCols: import("@angular/core").Signal; $showStepConfig: WritableSignal; $stepUpdated: WritableSignal; standardConnectorHeight: number; $currentSteps: WritableSignal; $showCurrentStepsPreview: WritableSignal; $selectedActorAssignment: WritableSignal; $initialBasicInfoJson: WritableSignal; $initialFormDesignJson: WritableSignal; $initialProcessDesignJson: WritableSignal; $initialDelegationJson: WritableSignal; $initialEmailTemplatesJson: WritableSignal; $currentBasicInfoJson: WritableSignal; $currentFormDesignJson: import("@angular/core").Signal; $currentProcessDesignJson: import("@angular/core").Signal; $currentDelegationJson: WritableSignal; $basicInfoChanged: import("@angular/core").Signal; $formDesignChanged: import("@angular/core").Signal; $processDesignChanged: import("@angular/core").Signal; $delegationChanged: import("@angular/core").Signal; $moreChanged: import("@angular/core").Signal; $designActiveTab: WritableSignal; $simulatedEmployee: WritableSignal; $showLiveRouting: WritableSignal; insertContext$: BehaviorSubject; insertAnchorPoint$: BehaviorSubject; subscriptions: Subscription[]; router: Router; jsonService: JsonService; $routingSteps: WritableSignal; basicInfoForm: FormGroup; basicInfoFormCheckError$: BehaviorSubject; emailTemplatesForm: FormGroup; delegationFormCheckError$: BehaviorSubject; emailTemplatesFormCheckError$: BehaviorSubject; delegationForm: FormGroup; liveForm: FormGroup; liveFormCheckError$: BehaviorSubject; $stepsJsonPreview: import("@angular/core").Signal; constructor(appService: AppService, alertService: AlertService, fds: CoreFormDesignService); newWorkflow(): IWfWorkflow; updateStep(updatedStep: IStep): void; refreshObservable(endpoint: string | undefined, searchTerm: string, currentGroupId?: number | undefined, published?: boolean, signal?: AbortSignal | null): Observable; createConditionalBranchStep(branchId: string): IStep; createStep(type: EnumWorkflowStepType, branchId: string, label: string): IStep; getNextIndexByStepType(type: EnumWorkflowStepType): number; autoReassignPriorities(branches: IWorkflowBranch[]): void; findStepRecursive(steps: IStep[], targetId: string): IStep | null; addBranchToStep(stepId: string): void; loadWorkflowWithAfInstance(workflowId: string): Observable; loadAfInstance(afInstanceId: string): Observable; extractValidFieldsFromSections(sectionsJson: string): IFormBaseControl[]; updateGroupOrder(newOrder: IWfWorkflowGroup[]): Observable; toggleFlowLock(flowId: string): Observable; updateTableOrder(newOrder: IWorkflowSchemaTable[]): Observable; updateStepsSignalAfterNestedChange(signal: WritableSignal, mutate: (draft: IStep[]) => void): void; saveCurrentSteps(): void; publish(): Observable; getById(id: string): void; deepStepFind(sources: IStep[], id: string): IStep | undefined; updateCurrentStepConfig(configPatch: Partial): void; loadByIdWithAfInstance(workflowId: string): void; loadProcessDesign(): void; generateRouting(request: IGenerateWorkflowRoutingRequest): Observable<{ ok: true; status: 200; body: import("ngx-histaff-alpha").IFormatedResponse; }>; getEmployeesByIds(payload: IIdsRequest): Observable; getPositionsByIds(payload: IIdsRequest): Observable; initialDebugSubmit(request: IInitialDebugSubmitRequest): Observable; initialSubmit(request: IGenerateWorkflowRoutingRequest): Observable; react(unitedCorrelationIds: string, reactType: string, reason: string, updatedAttributes: any, delegationId: string | null): Observable; inject(unitedCorrelationIds: string, injectType: string, reason: string, injectorEmployeeId?: number | undefined): Observable; generatePreviewEmail(request: IRenderWorkflowEmailRequest): Observable; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }