import { OnDestroy } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; import { ProcessService } from '../../process/process.service'; import { Net } from '../../process/net'; import * as i0 from "@angular/core"; /** * This service holds the information about the allowed nets for a specific view. */ export declare class AllowedNetsService implements OnDestroy { protected _processService: ProcessService; protected _allowedNets$: ReplaySubject>; protected _allowedNets: Array; protected _allowedNetsIdentifiers$: ReplaySubject>; protected _allowedNetsIdentifiers: Array; private subAllowedNets; /** * The service converts identifiers to {@link Net} objects on its own. * * When a new set of allowed nets is emitted into the input Observable the allowed nets for the view are updated. * * @param allowedNetIdentifiers$ identifiers of the allowed nets * @param _processService process service */ constructor(allowedNetIdentifiers$: Observable>, _processService: ProcessService); /** * Emits any time the allowed nets change. The first emission comes after the source observable emits for the first time. * * If a value has already been emitted, subscribing to the stream will provide the last emitted value. */ get allowedNets$(): Observable>; /** * @returns the current value of the allowed nets. If allowed nets are yet to bee set, `undefined` is returned. */ get allowedNets(): ReadonlyArray | undefined; /** * Emits any time the allowed nets change. The first emission comes after the source observable emits for the first time. * * If a value has already been emitted, subscribing to the stream will provide the last emitted value. */ get allowedNetsIdentifiers$(): Observable>; /** * @returns the current value of the allowed nets identifiers. If allowed nets are yet to bee set, `undefined` is returned. */ get allowedNetsIdentifiers(): ReadonlyArray | undefined; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }