1 | import type { Actor, IAction, IActorOutput, IActorTest } from './Actor';
|
2 | import type { IActorReply, IBusArgs } from './Bus';
|
3 | import { Bus } from './Bus';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class BusIndexed<A extends Actor<I, T, O>, I extends IAction, T extends IActorTest, O extends IActorOutput> extends Bus<A, I, T, O> {
|
21 | protected readonly actorsIndex: Record<string, A[]>;
|
22 | protected readonly actorIdentifierFields: string[];
|
23 | protected readonly actionIdentifierFields: string[];
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | constructor(args: IBusIndexedArgs);
|
32 | subscribe(actor: A): void;
|
33 | unsubscribe(actor: A): boolean;
|
34 | publish(action: I): IActorReply<A, I, T, O>[];
|
35 | protected getActorIdentifier(actor: A): string;
|
36 | protected getActionIdentifier(action: I): string;
|
37 | }
|
38 | export interface IBusIndexedArgs extends IBusArgs {
|
39 | actorIdentifierFields: string[];
|
40 | actionIdentifierFields: string[];
|
41 | }
|