import { MessageService } from '@alauda/ui'; import { Callback, TranslateService, OpenAPIV3SchemaObject, Workspace } from '@alauda-fe/common'; import { Descriptor, FormState, HtpasswdComponent } from '@alauda-fe/crd-form'; import { AfterViewInit, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, ControlValueAccessor, FormBuilder, FormGroup, FormGroupDirective, ValidationErrors, Validator } from '@angular/forms'; import { Observable } from 'rxjs'; import { CatalogApiService, CHART_FILE } from '../../services'; import * as i0 from "@angular/core"; export declare class HelmRequestValuesFormComponent implements ControlValueAccessor, OnInit, OnDestroy, AfterViewInit, Validator { private readonly fb; private readonly cdr; private readonly catalogApi; private readonly injector; private readonly message; private readonly translate; ngFormGroupDirective: FormGroupDirective; chartName: string; chartName$: Observable; chartVersion: string; chartVersion$: Observable; baseParams: Workspace; files: Record; files$: Observable>; enableFiles: boolean; onCvaChange: Callback; onCvaTouched: Callback; form: FormGroup; mode: string; configLoading: boolean; configYaml: string; descriptors: Descriptor[]; schema: OpenAPIV3SchemaObject; valuesYaml: string; editorOptions: import("@alauda-fe/common").IEditorConstructionOptions; editorActions: import("@alauda/code-editor").CodeEditorActionsConfig; emptyConfig: { diffMode: boolean; recover: boolean; clear: boolean; find: boolean; copy: boolean; theme: boolean; fullscreen: boolean; export: boolean; import: boolean; }; yamlReadOptions: import("@alauda-fe/common").IEditorConstructionOptions; WIDGETS: { descriptor: string; component: typeof HtpasswdComponent; }[]; private parentFormSub; registerOnChange(fn: (value: Record) => void): void; registerOnTouched(fn: () => void): void; writeValue(values: Record): void; constructor(fb: FormBuilder, cdr: ChangeDetectorRef, catalogApi: CatalogApiService, injector: Injector, message: MessageService, translate: TranslateService); validate(_: AbstractControl): ValidationErrors; ngAfterViewInit(): void; ngOnInit(): void; ngOnDestroy(): void; formStateChange(e: FormState): void; modeChange(mode: string): void; private setYamlByForm; private setFormByYaml; private getFormValue; private getEditorValue; private setUpFormValues; get enableCrdFrom(): true | OpenAPIV3SchemaObject; private getChartValues; private setUpFormSubscription; private setupSubmitEvent; crdFormInputSchema(schema: OpenAPIV3SchemaObject): OpenAPIV3SchemaObject; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }