import { TxTask } from './tx-task'; import { TxSubject } from './tx-subject'; import { TxMountPoint } from "./tx-mountpoint"; declare enum TxMountPointRxJSWrapperEnum { TASKS = 0, REPLY = 1 } declare class TxMountPointRxJSWrapper extends TxSubject { private mountpoint; private origin; private mode; constructor(mountpoint: TxMountPointRxJS, origin: TxSubject, mode: TxMountPointRxJSWrapperEnum); subscribe(...args: any[]): import("rxjs").Subscription; next(task: TxTask): void; error(err: TxTask): void; getOrigin(from?: string): TxSubject; } /** * 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 TxMountPointRxJS implements TxMountPoint { private _name; type: string; _tasks: TxSubject; _reply: TxMountPointRxJSWrapper; _undos: TxSubject; constructor(_name: string | Symbol); readonly name: string; /** * Use this subject to send back reply of some tasks. * @returns {TxSubject} */ reply(): TxMountPointRxJSWrapper; /** * Use this subject to receive some task to do * then reply on the reply subject about the result. * @returns {TxSubject>} */ tasks(): TxSubject; undos(): TxSubject; setFrom(from: T): void; adjust(from: TxMountPointRxJS): this; } export {};