1 | import { HandleCommand } from "./HandleCommand";
|
2 | import { HandlerContext } from "./HandlerContext";
|
3 | import { HandlerResult } from "./HandlerResult";
|
4 | import { CommandHandlerMetadata } from "./metadata/automationMetadata";
|
5 | import { Maker } from "./util/constructionUtils";
|
6 | export declare enum QuestionStyle {
|
7 | Dialog = "dialog",
|
8 | Threaded = "threaded",
|
9 | Unthreaded = "unthreaded",
|
10 | DialogAction = "dialog_action"
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare type OnCommand<P = undefined> = (ctx: HandlerContext, parameters: P) => Promise<HandlerResult> | Promise<any>;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function commandHandlerFrom<P>(h: OnCommand<P>, factory: Maker<P>, name?: string, description?: string, intent?: string | string[], tags?: string | string[], autoSubmit?: boolean, question?: QuestionStyle): HandleCommand<P> & CommandHandlerMetadata;
|
26 |
|
\ | No newline at end of file |