export declare class Subject { #private; constructor(); next(value: T): void; subscribe(callback: (value: T) => any | Promise): () => boolean; } declare const UNSET: unique symbol; export declare class ReplaySubject { #private; get value(): typeof UNSET | T; constructor(initialValue?: T); get(): typeof UNSET | T; next(value: T): void; subscribe(callback: (value: T) => any | Promise): () => boolean; tx(callback: (value: T) => T): void; tx(callback: (value: T) => Promise): Promise; } export {};