import { Destroyable } from '../utils/Destroyable'; import { Signal } from '../signal/Signal'; export declare class Realm extends Destroyable { readonly scope: any; readonly signals: Map; constructor(scope: any); /** * Set signal into realm. * @param signal The signal instance */ setSignal(signal: Signal): void; /** * If signal is existing in realm, it will be returns `true`, otherwise `false`. * @param key Signal's key */ hasSignal(key: string): boolean; /** * Return a signal instance if it already exists. Otherwise, it returns `undefined`. * @param key Signal's key */ getSignal(key: string): Signal | undefined; /** * Destroy this realm instance. It will be removed from realm collections. * @param reason Destruction reason */ destroy(reason: string): void; }