import { TxSubscribe } from './tx-subscribe'; import { TxMountPoint } from "./tx-mountpoint"; import { TxDoublePoint } from './tx-doublepoint'; import { TxCallback } from './tx-callback'; export declare class TxSingleSubscribe extends TxSubscribe { private methods; isSubscribe: boolean; constructor(from?: T); /** * two cases: * 1) name is string - then task.head.method => point to dataCB. * 2) name is [dataCB, errorCB] then: * task.head.method[0] => point to dataCB. * task.head.method[1] => point to errorCB. */ method(name: string | string[], target: any, errorCB?: TxCallback): import("./tx-subscribe").TxUnSubscribe; setCallbacks(dataCB: TxCallback, errorCB?: TxCallback): import("./tx-subscribe").TxUnSubscribe; private isNamesArray; } /** * 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 TxSinglePoint implements TxMountPoint { private _name; type: string; _tasks: TxSingleSubscribe; _undos: TxSingleSubscribe; 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(): TxSingleSubscribe; undos(): TxSingleSubscribe; setFrom(from: T): void; double(suffix?: string): TxDoublePoint; }