import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core'; import { FormBuilder, FormGroup, FormArray } from '@angular/forms'; import { DynamicSelectFieldConfig, SelectOption } from '../../dynamic-select/dynamic-select-field.component'; import { ActionTemplate } from '../step-builder-action/step-builder-action.component'; import { CodeEditorMarker } from '../../code-editor/code-editor.component'; import * as i0 from "@angular/core"; export interface CustomCodeFormData { language: string; code: string; metadata?: string; description?: string; templateVariables?: any[]; advancedSettingsVariables?: any[]; } export declare class StepBuilderCustomCodeComponent implements OnInit, OnChanges { private fb; /** Options for language dropdown */ languageOptions: SelectOption[]; /** Template to get variables from */ template: ActionTemplate | null; /** Function to handle variable processing or custom logic. Can be passed from parent component. */ setTemplateVariables: (variables: ActionTemplate) => any; /** Function to handle advanced settings variables. Can be passed from parent component. */ setAdvancedSettingsVariables: (template: ActionTemplate, testStep?: any) => any[]; /** Initial values for editing mode */ initialCode?: string; initialLanguage?: string; initialMetadata?: string; initialDescription?: string; isEditMode: boolean; /** True while parent is creating the step (API in progress); show loader on Create Step button */ isCreatingStep: boolean; /** Emit when step is created */ createStep: EventEmitter; /** Emit when cancelled */ cancelled: EventEmitter; customCodeForm: FormGroup; templateVariables: any[]; variablesForm: FormGroup; advancedSettingsVariables: any[]; advancedVariablesForm: FormArray; advancedExpanded: boolean; codeValidationErrors: CodeEditorMarker[]; constructor(fb: FormBuilder); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private initializeFormWithValues; private loadTemplateVariables; private buildVariablesForm; getSelectConfig(variable: any): DynamicSelectFieldConfig; onVariableValueChange(variableName: string, value: any): void; onVariableBooleanChange(variableName: string, value: boolean): void; getLanguageConfig(): DynamicSelectFieldConfig; onCancel(): void; private buildAdvancedVariablesForm; onAdvancedVariableBooleanChange(variableName: string, value: boolean): void; onAdvancedVariableValueChange(variableName: string, value: any): void; toggleAdvanced(): void; onCodeValueChange(value: string): void; onCodeValidationChange(errors: CodeEditorMarker[]): void; get hasCodeSyntaxErrors(): boolean; /** Form validation errors for the code field (e.g. "Code is required") - passed to code editor [errors] */ get codeFieldErrors(): string[]; onCreateStep(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }