import { AsyncValidatorFn } from '@angular/forms';
import { Observable } from 'rxjs';
import { LimitRange } from '../core';
import { TranslateService } from '../translate/translate.service';
declare const AVAILABLE_RESOURCE_TYPES: readonly ["cpu", "memory"];
export declare type AvailableResourceType = typeof AVAILABLE_RESOURCE_TYPES[number];
export interface ResourceControl {
    value: string;
    unit: string;
}
export declare function setupErrorMapper(resource: LimitRange, translate: TranslateService): {
    cpu_max: string;
    memory_max: string;
};
export declare function getResourceLimitAsyncValidatorFn(type: AvailableResourceType, limitRange$: Observable<LimitRange>, unit?: string): AsyncValidatorFn;
export {};
