import { TxTask } from './tx-task'; import { Subject } from 'rxjs/Subject'; import { TxMountPoint } from "./tx-mountpoint"; export declare class TxSingleSubjectRxJS extends Subject> { private methods; isSubscribe: boolean; constructor(); method(name: any, target: any): void; } /** * TxMountPoint: class is usually used by a component. * * It is a meeting point between two totally different components. * It support two communication between components. * * A component receive task by the mount-point's tasks Subject and return reply by reply subject. */ export declare class TxSinglePointRxJS implements TxMountPoint { private _name; _tasks: TxSingleSubjectRxJS; _undos: TxSingleSubjectRxJS; constructor(_name: string | Symbol); readonly name: string; /** * Reply is allow using TxSinglePoint. * @returns TxSingleSubject */ reply(): void; /** * Use this subject to receive some task to do * then reply on the reply subject about the result. * @returns TxSingleSubject */ tasks(): TxSingleSubjectRxJS; undos(): TxSingleSubjectRxJS; }