import { DialogService } from '@alauda/ui';
import { Observable } from 'rxjs';
import { KubernetesResource } from '../core';
import { TranslateService } from '../translate/public-api';
import { K8sApiService } from './k8s-api.service';
import * as i0 from "@angular/core";
export declare class ResourceUpdateService<R extends string = string> {
    private readonly k8sApi;
    private readonly dialog;
    private readonly translate;
    constructor(k8sApi: K8sApiService, dialog: DialogService, translate: TranslateService);
    /**
     * ! 只应在完整更新资源时使用，部分更新时应该使用 patch
     */
    retryPutResource<T extends KubernetesResource>(params: {
        type: R;
        cluster: string;
        resource: T;
    }): Observable<T>;
    /**
     * ! 只应在完整更新资源时使用，部分更新时应该使用 patch
     */
    retryPutGlobalResource<T extends KubernetesResource>(params: {
        type: R;
        namespaced: boolean;
        resource: T;
    }): Observable<T>;
    private retryUpdate;
    static ɵfac: i0.ɵɵFactoryDeclaration<ResourceUpdateService<any>, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ResourceUpdateService<any>>;
}
