1 | import { Configuration } from "./configuration";
|
2 | import { HandleCommand } from "./HandleCommand";
|
3 | import { HandleEvent } from "./HandleEvent";
|
4 | import { HandlerResult } from "./HandlerResult";
|
5 | import { ExpressServer } from "./internal/transport/express/ExpressServer";
|
6 | import { CommandIncoming, EventIncoming, RequestProcessor } from "./internal/transport/RequestProcessor";
|
7 | import { WebSocketClient } from "./internal/transport/websocket/WebSocketClient";
|
8 | import { AutomationServer } from "./server/AutomationServer";
|
9 | import { BuildableAutomationServer } from "./server/BuildableAutomationServer";
|
10 | import { Maker } from "./util/constructionUtils";
|
11 | export declare class AutomationClient implements RequestProcessor {
|
12 | configuration: Configuration;
|
13 | automations: BuildableAutomationServer;
|
14 | webSocketClient: WebSocketClient;
|
15 | httpServer: ExpressServer;
|
16 | webSocketHandler: RequestProcessor;
|
17 | httpHandler: RequestProcessor;
|
18 | private defaultListeners;
|
19 | constructor(configuration: Configuration);
|
20 | readonly automationServer: AutomationServer;
|
21 | withCommandHandler(chm: Maker<HandleCommand>): AutomationClient;
|
22 | withEventHandler(event: Maker<HandleEvent<any>>): AutomationClient;
|
23 | withIngester(ingester: string): AutomationClient;
|
24 | processCommand(command: CommandIncoming, callback?: (result: Promise<HandlerResult>) => void): any;
|
25 | processEvent(event: EventIncoming, callback?: (results: Promise<HandlerResult[]>) => void): any;
|
26 | run(): Promise<void>;
|
27 | private configureStatsd;
|
28 | private configureLogging;
|
29 | private setupWebSocketClusterRequestHandler;
|
30 | private setupWebSocketClusterWorkerRequestHandler;
|
31 | private setupWebSocketRequestHandler;
|
32 | private setupApplicationEvents;
|
33 | private setupExpressRequestHandler;
|
34 | private runWs;
|
35 | private runHttp;
|
36 | private printStartupMessage;
|
37 | }
|
38 | export declare function automationClient(configuration: Configuration): AutomationClient;
|
39 | //# sourceMappingURL=automationClient.d.ts.map |
\ | No newline at end of file |