import { WatcherFactory } from './watcher-factory.service'; import { Restangular } from "ng2-restangular"; import { KubernetesService } from "./kubernetes.service"; import { Observable } from "rxjs"; import { KubernetesResource } from "../model/kubernetesresource.model"; import { NamespaceScope } from "./namespace.scope"; import { Watcher } from "./watcher"; export declare abstract class NamespacedResourceService> extends KubernetesService { private namespaceScope; private urlSuffix; private urlPrefix; private namespaceSubscription; private _namespace; protected _serviceUrl: string; constructor(kubernetesRestangular: Restangular, namespaceScope: NamespaceScope, urlSuffix: string, watcherFactory: WatcherFactory, urlPrefix?: string); /** * Creates a watcher that can watch for events * @param queryParams */ watchNamepace(namespace: string, queryParams?: any): Watcher; namespace: string; get(id: string, namespace?: string): Observable; list(namespace?: string, queryParams?: any): Observable; create(obj: T, namespace?: string): Observable; delete(obj: T): any; protected urlForObject(obj: T, namespace?: string): string; /** * Returns the service URL to use for the current namespace scope */ readonly serviceUrl: string; /** * Returns the base URL to use for the given namespace */ protected serviceUrlForNamespace(namespace: string): string; protected createServiceUrl(urlPrefix: string, namespace: string, urlSuffix: string): string; ngOnDestroy(): void; protected onNamespaceChanged(): void; }