UNPKG

2.13 kBTypeScriptView Raw
1import { HandleCommand } from "@atomist/automation-client/lib/HandleCommand";
2import { HandleEvent } from "@atomist/automation-client/lib/HandleEvent";
3import { NoParameters } from "@atomist/automation-client/lib/SmartParameters";
4import { Maker } from "@atomist/automation-client/lib/util/constructionUtils";
5import { CommandRegistrationManager } from "../../api/machine/CommandRegistrationManager";
6import { CodeInspectionRegistration } from "../../api/registration/CodeInspectionRegistration";
7import { CodeTransformRegistration } from "../../api/registration/CodeTransformRegistration";
8import { CommandHandlerRegistration } from "../../api/registration/CommandHandlerRegistration";
9import { EventHandlerRegistration } from "../../api/registration/EventHandlerRegistration";
10import { EventRegistrationManager } from "../../api/registration/EventRegistrationManager";
11import { GeneratorRegistration } from "../../api/registration/GeneratorRegistration";
12import { IngesterRegistration } from "../../api/registration/IngesterRegistration";
13import { IngesterRegistrationManager } from "../../api/registration/IngesterRegistrationManager";
14import { MachineOrMachineOptions } from "./toMachineOptions";
15/**
16 * Concrete implementation of CommandRegistrationManager and
17 * HandlerRegistrationManager
18 */
19export declare class HandlerRegistrationManagerSupport implements CommandRegistrationManager, EventRegistrationManager, IngesterRegistrationManager {
20 private readonly sdm;
21 constructor(sdm: MachineOrMachineOptions);
22 commandHandlers: Array<Maker<HandleCommand>>;
23 eventHandlers: Array<Maker<HandleEvent<any>>>;
24 ingesters: string[];
25 addCommand<P>(cmd: CommandHandlerRegistration<P>): this;
26 addGeneratorCommand<P = NoParameters>(gen: GeneratorRegistration<P>): this;
27 addCodeTransformCommand<P>(ed: CodeTransformRegistration<P>): this;
28 addCodeInspectionCommand<R, P = NoParameters>(cir: CodeInspectionRegistration<R, P>): this;
29 addEvent<T, P>(e: EventHandlerRegistration<T, P>): this;
30 addIngester(i: IngesterRegistration): this;
31}
32//# sourceMappingURL=HandlerRegistrationManagerSupport.d.ts.map
\No newline at end of file