import { StringMap, TranslateService } from '@alauda-fe/common'; import { Injector, OnInit, TemplateRef } from '@angular/core'; import { ValidatorFn } from '@angular/forms'; import { BaseResourceFormGroupComponent } from 'ng-resource-form-util'; import { ResourceSize, ResourceSizeTip, ResourceSpecification } from '../../types/resource-exports'; import { ResourceRequirements } from '../../types/resource-internals'; import * as i0 from "@angular/core"; interface ResourceValidatorFn { limits?: { cpu: ValidatorFn[]; memory: ValidatorFn[]; }; requests?: { cpu: ValidatorFn[]; memory: ValidatorFn[]; }; } export declare class ResourceSpecFormComponent extends BaseResourceFormGroupComponent implements OnInit { private readonly translate; resourceSizeTips: ResourceSizeTip[]; resourceSpecificationDescription: string | TemplateRef; resourceSpecification: ResourceSpecification[]; showResourceRequests: boolean; validatorFn: ResourceValidatorFn; set errorMapper(errorMapper: StringMap); get errorMapper(): StringMap; get resourceSpecificationMapper(): Partial>; private _errorMapper; ResourceSize: typeof ResourceSize; POSITIVE_INT_PATTERN: { pattern: RegExp; tip: string; }; isTemplateRef: (label: any) => label is TemplateRef; constructor(injector: Injector, translate: TranslateService); ngOnInit(): void; createForm(): import("@angular/forms").FormGroup<{ requests: import("@angular/forms").FormGroup<{ cpu: import("@angular/forms").FormGroup<{ value: import("@angular/forms").FormControl; unit: import("@angular/forms").FormControl<"core" | "m">; }>; memory: import("@angular/forms").FormGroup<{ value: import("@angular/forms").FormControl; unit: import("@angular/forms").FormControl<"Gi" | "Mi">; }>; }>; size: import("@angular/forms").FormControl; limits: import("@angular/forms").FormGroup<{ cpu: import("@angular/forms").FormGroup<{ value: import("@angular/forms").FormControl; unit: import("@angular/forms").FormControl<"core" | "m">; }>; memory: import("@angular/forms").FormGroup<{ value: import("@angular/forms").FormControl; unit: import("@angular/forms").FormControl<"Gi" | "Mi">; }>; }>; }>; getDefaultFormModel(): { requests: import("../../types/resource-internals").ResourceModel; size: ResourceSize; limits: import("../../types/resource-internals").ResourceModel; }; adaptFormModel(formModel: ResourceSpecification): ResourceRequirements; adaptResourceModel(resource: ResourceRequirements): ResourceSpecification; onResourceSizeChange(size: ResourceSize): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};