1 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
2 | import { ParameterStyle } from "../registration/CommandRegistration";
|
3 | import { ParametersObjectValue } from "../registration/ParametersDefinition";
|
4 |
|
5 |
|
6 |
|
7 | export declare type ParametersPromptObject<PARAMS, K extends keyof PARAMS = keyof PARAMS> = Record<K, ParametersObjectValue & {
|
8 | force?: boolean;
|
9 | }>;
|
10 |
|
11 |
|
12 |
|
13 | export declare type ParameterPromptFactory<PARAMS> = (ctx: HandlerContext) => ParameterPrompt<PARAMS>;
|
14 |
|
15 |
|
16 |
|
17 | export interface ParameterPromptOptions {
|
18 | |
19 |
|
20 |
|
21 | thread?: boolean | string;
|
22 | |
23 |
|
24 |
|
25 | parameterStyle?: ParameterStyle;
|
26 | |
27 |
|
28 |
|
29 | autoSubmit?: boolean;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 | export declare type ParameterPrompt<PARAMS> = (parameters: ParametersPromptObject<PARAMS>, options?: ParameterPromptOptions) => Promise<PARAMS>;
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare const NoParameterPrompt: ParameterPrompt<any>;
|
40 | export declare const AtomistContinuationMimeType = "application/x-atomist-continuation+json";
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare function commandRequestParameterPromptFactory<T>(ctx: HandlerContext): ParameterPrompt<T>;
|
46 |
|
\ | No newline at end of file |