1 | import { CommandMessageClient } from "./message";
|
2 | import { ParametersObjectValue } from "./parameters";
|
3 | import { CommandIncoming } from "./payload";
|
4 |
|
5 |
|
6 |
|
7 | export declare type ParametersPromptObject<PARAMS, K extends keyof PARAMS = keyof PARAMS> = Record<K, ParametersObjectValue>;
|
8 |
|
9 |
|
10 |
|
11 | export declare enum ParameterStyle {
|
12 |
|
13 | Dialog = "dialog",
|
14 |
|
15 | Threaded = "threaded",
|
16 | |
17 |
|
18 |
|
19 |
|
20 | Unthreaded = "unthreaded",
|
21 | |
22 |
|
23 |
|
24 |
|
25 | DialogAction = "dialog_action"
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 | export interface ParameterPromptOptions {
|
31 | |
32 |
|
33 |
|
34 | thread?: boolean | string;
|
35 | |
36 |
|
37 |
|
38 | parameterStyle?: ParameterStyle;
|
39 | |
40 |
|
41 |
|
42 | autoSubmit?: boolean;
|
43 | }
|
44 |
|
45 |
|
46 |
|
47 | export declare type ParameterPrompt<PARAMS> = (parameters: ParametersPromptObject<PARAMS>, options?: ParameterPromptOptions) => Promise<PARAMS>;
|
48 | export declare const AtomistContinuationMimeType = "application/x-atomist-continuation+json";
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export declare function commandRequestParameterPromptFactory<T>(messageClient: CommandMessageClient, payload: CommandIncoming): ParameterPrompt<T>;
|
54 | export declare class CommandListenerExecutionInterruptError extends Error {
|
55 | readonly message: string;
|
56 | constructor(message: string);
|
57 | }
|
58 | //# sourceMappingURL=parameter_prompt.d.ts.map |
\ | No newline at end of file |