@backstage/plugin-scaffolder-react 0.0.0-nightly-20230111022819

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,361 @@
1
+ /// <reference types="react" />
2
+
3
+ import { ApiHolder } from '@backstage/core-plugin-api';
4
+ import { ApiRef } from '@backstage/core-plugin-api';
5
+ import { Dispatch } from 'react';
6
+ import { Extension } from '@backstage/core-plugin-api';
7
+ import { FieldProps } from '@rjsf/core';
8
+ import { FieldProps as FieldProps_2 } from '@rjsf/utils';
9
+ import { FieldValidation } from '@rjsf/core';
10
+ import { FieldValidation as FieldValidation_2 } from '@rjsf/utils';
11
+ import type { FormProps as FormProps_2 } from '@rjsf/core-v5';
12
+ import { IconComponent } from '@backstage/core-plugin-api';
13
+ import { JsonObject } from '@backstage/types';
14
+ import { JSONSchema7 } from 'json-schema';
15
+ import { JsonValue } from '@backstage/types';
16
+ import { Observable } from '@backstage/types';
17
+ import { PropsWithChildren } from 'react';
18
+ import { default as React_2 } from 'react';
19
+ import { SetStateAction } from 'react';
20
+ import { TaskSpec } from '@backstage/plugin-scaffolder-common';
21
+ import { TaskStep } from '@backstage/plugin-scaffolder-common';
22
+ import { TemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
23
+ import { UIOptionsType } from '@rjsf/utils';
24
+ import { UiSchema } from '@rjsf/utils';
25
+
26
+ /**
27
+ * The response shape for a single action in the `listActions` call to the `scaffolder-backend`
28
+ *
29
+ * @public
30
+ */
31
+ export declare type Action = {
32
+ id: string;
33
+ description?: string;
34
+ schema?: {
35
+ input?: JSONSchema7;
36
+ output?: JSONSchema7;
37
+ };
38
+ examples?: ActionExample[];
39
+ };
40
+
41
+ /**
42
+ * A single action example
43
+ *
44
+ * @public
45
+ */
46
+ export declare type ActionExample = {
47
+ description: string;
48
+ example: string;
49
+ };
50
+
51
+ /* Excluded from this release type: createFieldValidation */
52
+
53
+ /* Excluded from this release type: createNextScaffolderFieldExtension */
54
+
55
+ /**
56
+ * Method for creating field extensions that can be used in the scaffolder
57
+ * frontend form.
58
+ * @public
59
+ */
60
+ export declare function createScaffolderFieldExtension<TReturnValue = unknown, TInputProps = unknown>(options: FieldExtensionOptions<TReturnValue, TInputProps>): Extension<FieldExtensionComponent<TReturnValue, TInputProps>>;
61
+
62
+ /**
63
+ * Type for the Custom Field Extension schema.
64
+ *
65
+ * @public
66
+ */
67
+ export declare type CustomFieldExtensionSchema = {
68
+ returnValue: JSONSchema7;
69
+ uiOptions?: JSONSchema7;
70
+ };
71
+
72
+ /**
73
+ * Field validation type for Custom Field Extensions.
74
+ *
75
+ * @public
76
+ */
77
+ export declare type CustomFieldValidator<TFieldReturnValue> = (data: TFieldReturnValue, field: FieldValidation, context: {
78
+ apiHolder: ApiHolder;
79
+ }) => void | Promise<void>;
80
+
81
+ /* Excluded from this release type: extractSchemaFromStep */
82
+
83
+ /**
84
+ * A type used to wrap up the FieldExtension to embed the ReturnValue and the InputProps
85
+ * @public
86
+ */
87
+ export declare type FieldExtensionComponent<_TReturnValue, _TInputProps> = () => null;
88
+
89
+ /**
90
+ * Type for field extensions and being able to type
91
+ * incoming props easier.
92
+ *
93
+ * @public
94
+ */
95
+ export declare interface FieldExtensionComponentProps<TFieldReturnValue, TUiOptions extends {} = {}> extends FieldProps<TFieldReturnValue> {
96
+ uiSchema: FieldProps['uiSchema'] & {
97
+ 'ui:options'?: TUiOptions;
98
+ };
99
+ }
100
+
101
+ /**
102
+ * Type for the Custom Field Extension with the
103
+ * name and components and validation function.
104
+ *
105
+ * @public
106
+ */
107
+ export declare type FieldExtensionOptions<TFieldReturnValue = unknown, TInputProps = unknown> = {
108
+ name: string;
109
+ component: (props: FieldExtensionComponentProps<TFieldReturnValue, TInputProps>) => JSX.Element | null;
110
+ validation?: CustomFieldValidator<TFieldReturnValue>;
111
+ schema?: CustomFieldExtensionSchema;
112
+ };
113
+
114
+ /* Excluded from this release type: FormProps */
115
+
116
+ /**
117
+ * The response shape for the `listActions` call to the `scaffolder-backend`
118
+ *
119
+ * @public
120
+ */
121
+ export declare type ListActionsResponse = Array<Action>;
122
+
123
+ /**
124
+ * The shape of a `LogEvent` message from the `scaffolder-backend`
125
+ *
126
+ * @public
127
+ */
128
+ export declare type LogEvent = {
129
+ type: 'log' | 'completion';
130
+ body: {
131
+ message: string;
132
+ stepId?: string;
133
+ status?: ScaffolderTaskStatus;
134
+ };
135
+ createdAt: string;
136
+ id: string;
137
+ taskId: string;
138
+ };
139
+
140
+ /* Excluded from this release type: NextCustomFieldValidator */
141
+
142
+ /* Excluded from this release type: NextFieldExtensionComponentProps */
143
+
144
+ /* Excluded from this release type: NextFieldExtensionOptions */
145
+
146
+ /* Excluded from this release type: ParsedTemplateSchema */
147
+
148
+ /* Excluded from this release type: ReviewState */
149
+
150
+ /* Excluded from this release type: ReviewStateProps */
151
+
152
+ /**
153
+ * An API to interact with the scaffolder backend.
154
+ *
155
+ * @public
156
+ */
157
+ export declare interface ScaffolderApi {
158
+ getTemplateParameterSchema(templateRef: string): Promise<TemplateParameterSchema>;
159
+ /**
160
+ * Executes the scaffolding of a component, given a template and its
161
+ * parameter values.
162
+ *
163
+ * @param options - The {@link ScaffolderScaffoldOptions} the scaffolding.
164
+ */
165
+ scaffold(options: ScaffolderScaffoldOptions): Promise<ScaffolderScaffoldResponse>;
166
+ getTask(taskId: string): Promise<ScaffolderTask>;
167
+ listTasks?(options: {
168
+ filterByOwnership: 'owned' | 'all';
169
+ }): Promise<{
170
+ tasks: ScaffolderTask[];
171
+ }>;
172
+ getIntegrationsList(options: ScaffolderGetIntegrationsListOptions): Promise<ScaffolderGetIntegrationsListResponse>;
173
+ /**
174
+ * Returns a list of all installed actions.
175
+ */
176
+ listActions(): Promise<ListActionsResponse>;
177
+ streamLogs(options: ScaffolderStreamLogsOptions): Observable<LogEvent>;
178
+ dryRun?(options: ScaffolderDryRunOptions): Promise<ScaffolderDryRunResponse>;
179
+ }
180
+
181
+ /** @public */
182
+ export declare const scaffolderApiRef: ApiRef<ScaffolderApi>;
183
+
184
+ /** @public */
185
+ export declare interface ScaffolderDryRunOptions {
186
+ template: JsonValue;
187
+ values: JsonObject;
188
+ secrets?: Record<string, string>;
189
+ directoryContents: {
190
+ path: string;
191
+ base64Content: string;
192
+ }[];
193
+ }
194
+
195
+ /** @public */
196
+ export declare interface ScaffolderDryRunResponse {
197
+ directoryContents: Array<{
198
+ path: string;
199
+ base64Content: string;
200
+ executable: boolean;
201
+ }>;
202
+ log: Array<Pick<LogEvent, 'body'>>;
203
+ steps: TaskStep[];
204
+ output: ScaffolderTaskOutput;
205
+ }
206
+
207
+ /**
208
+ * The Wrapping component for defining fields extensions inside
209
+ *
210
+ * @public
211
+ */
212
+ export declare const ScaffolderFieldExtensions: React_2.ComponentType<React_2.PropsWithChildren<{}>>;
213
+
214
+ /**
215
+ * The arguments for `getIntegrationsList`.
216
+ *
217
+ * @public
218
+ */
219
+ export declare interface ScaffolderGetIntegrationsListOptions {
220
+ allowedHosts: string[];
221
+ }
222
+
223
+ /**
224
+ * The response shape for `getIntegrationsList`.
225
+ *
226
+ * @public
227
+ */
228
+ export declare interface ScaffolderGetIntegrationsListResponse {
229
+ integrations: {
230
+ type: string;
231
+ title: string;
232
+ host: string;
233
+ }[];
234
+ }
235
+
236
+ /** @public */
237
+ export declare type ScaffolderOutputLink = {
238
+ title?: string;
239
+ icon?: string;
240
+ url?: string;
241
+ entityRef?: string;
242
+ };
243
+
244
+ /**
245
+ * The input options to the `scaffold` method of the `ScaffolderClient`.
246
+ *
247
+ * @public
248
+ */
249
+ export declare interface ScaffolderScaffoldOptions {
250
+ templateRef: string;
251
+ values: Record<string, JsonValue>;
252
+ secrets?: Record<string, string>;
253
+ }
254
+
255
+ /**
256
+ * The response shape of the `scaffold` method of the `ScaffolderClient`.
257
+ *
258
+ * @public
259
+ */
260
+ export declare interface ScaffolderScaffoldResponse {
261
+ taskId: string;
262
+ }
263
+
264
+ /**
265
+ * The input options to the `streamLogs` method of the `ScaffolderClient`.
266
+ *
267
+ * @public
268
+ */
269
+ export declare interface ScaffolderStreamLogsOptions {
270
+ taskId: string;
271
+ after?: number;
272
+ }
273
+
274
+ /**
275
+ * The shape of each task returned from the `scaffolder-backend`
276
+ *
277
+ * @public
278
+ */
279
+ export declare type ScaffolderTask = {
280
+ id: string;
281
+ spec: TaskSpec;
282
+ status: 'failed' | 'completed' | 'processing' | 'open' | 'cancelled';
283
+ lastHeartbeatAt: string;
284
+ createdAt: string;
285
+ };
286
+
287
+ /** @public */
288
+ export declare type ScaffolderTaskOutput = {
289
+ links?: ScaffolderOutputLink[];
290
+ } & {
291
+ [key: string]: unknown;
292
+ };
293
+
294
+ /**
295
+ * The status of each task in a Scaffolder Job
296
+ *
297
+ * @public
298
+ */
299
+ export declare type ScaffolderTaskStatus = 'open' | 'processing' | 'failed' | 'completed' | 'skipped';
300
+
301
+ /**
302
+ * The return type from the useTemplateSecrets hook.
303
+ * @public
304
+ */
305
+ export declare interface ScaffolderUseTemplateSecrets {
306
+ setSecrets: (input: Record<string, string>) => void;
307
+ secrets: Record<string, string>;
308
+ }
309
+
310
+ /**
311
+ * The Context Provider that holds the state for the secrets.
312
+ * @public
313
+ */
314
+ export declare const SecretsContextProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
315
+
316
+ /* Excluded from this release type: Stepper */
317
+
318
+ /* Excluded from this release type: StepperProps */
319
+
320
+ /* Excluded from this release type: TemplateCard */
321
+
322
+ /* Excluded from this release type: TemplateCardProps */
323
+
324
+ /* Excluded from this release type: TemplateGroup */
325
+
326
+ /* Excluded from this release type: TemplateGroupProps */
327
+
328
+ /**
329
+ * The shape of each entry of parameters which gets rendered
330
+ * as a separate step in the wizard input
331
+ *
332
+ * @public
333
+ */
334
+ export declare type TemplateParameterSchema = {
335
+ title: string;
336
+ description?: string;
337
+ steps: Array<{
338
+ title: string;
339
+ description?: string;
340
+ schema: JsonObject;
341
+ }>;
342
+ };
343
+
344
+ /**
345
+ * Hook that returns all custom field extensions from the current outlet.
346
+ * @public
347
+ */
348
+ export declare const useCustomFieldExtensions: <TComponentDataType = FieldExtensionOptions<unknown, unknown>>(outlet: React.ReactNode) => TComponentDataType[];
349
+
350
+ /* Excluded from this release type: useFormDataFromQuery */
351
+
352
+ /* Excluded from this release type: useTemplateSchema */
353
+
354
+ /**
355
+ * Hook to access the secrets context to be able to set secrets that are
356
+ * passed to the Scaffolder backend.
357
+ * @public
358
+ */
359
+ export declare const useTemplateSecrets: () => ScaffolderUseTemplateSecrets;
360
+
361
+ export { }
@@ -0,0 +1,361 @@
1
+ /// <reference types="react" />
2
+
3
+ import { ApiHolder } from '@backstage/core-plugin-api';
4
+ import { ApiRef } from '@backstage/core-plugin-api';
5
+ import { Dispatch } from 'react';
6
+ import { Extension } from '@backstage/core-plugin-api';
7
+ import { FieldProps } from '@rjsf/core';
8
+ import { FieldProps as FieldProps_2 } from '@rjsf/utils';
9
+ import { FieldValidation } from '@rjsf/core';
10
+ import { FieldValidation as FieldValidation_2 } from '@rjsf/utils';
11
+ import type { FormProps as FormProps_2 } from '@rjsf/core-v5';
12
+ import { IconComponent } from '@backstage/core-plugin-api';
13
+ import { JsonObject } from '@backstage/types';
14
+ import { JSONSchema7 } from 'json-schema';
15
+ import { JsonValue } from '@backstage/types';
16
+ import { Observable } from '@backstage/types';
17
+ import { PropsWithChildren } from 'react';
18
+ import { default as React_2 } from 'react';
19
+ import { SetStateAction } from 'react';
20
+ import { TaskSpec } from '@backstage/plugin-scaffolder-common';
21
+ import { TaskStep } from '@backstage/plugin-scaffolder-common';
22
+ import { TemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
23
+ import { UIOptionsType } from '@rjsf/utils';
24
+ import { UiSchema } from '@rjsf/utils';
25
+
26
+ /**
27
+ * The response shape for a single action in the `listActions` call to the `scaffolder-backend`
28
+ *
29
+ * @public
30
+ */
31
+ export declare type Action = {
32
+ id: string;
33
+ description?: string;
34
+ schema?: {
35
+ input?: JSONSchema7;
36
+ output?: JSONSchema7;
37
+ };
38
+ examples?: ActionExample[];
39
+ };
40
+
41
+ /**
42
+ * A single action example
43
+ *
44
+ * @public
45
+ */
46
+ export declare type ActionExample = {
47
+ description: string;
48
+ example: string;
49
+ };
50
+
51
+ /* Excluded from this release type: createFieldValidation */
52
+
53
+ /* Excluded from this release type: createNextScaffolderFieldExtension */
54
+
55
+ /**
56
+ * Method for creating field extensions that can be used in the scaffolder
57
+ * frontend form.
58
+ * @public
59
+ */
60
+ export declare function createScaffolderFieldExtension<TReturnValue = unknown, TInputProps = unknown>(options: FieldExtensionOptions<TReturnValue, TInputProps>): Extension<FieldExtensionComponent<TReturnValue, TInputProps>>;
61
+
62
+ /**
63
+ * Type for the Custom Field Extension schema.
64
+ *
65
+ * @public
66
+ */
67
+ export declare type CustomFieldExtensionSchema = {
68
+ returnValue: JSONSchema7;
69
+ uiOptions?: JSONSchema7;
70
+ };
71
+
72
+ /**
73
+ * Field validation type for Custom Field Extensions.
74
+ *
75
+ * @public
76
+ */
77
+ export declare type CustomFieldValidator<TFieldReturnValue> = (data: TFieldReturnValue, field: FieldValidation, context: {
78
+ apiHolder: ApiHolder;
79
+ }) => void | Promise<void>;
80
+
81
+ /* Excluded from this release type: extractSchemaFromStep */
82
+
83
+ /**
84
+ * A type used to wrap up the FieldExtension to embed the ReturnValue and the InputProps
85
+ * @public
86
+ */
87
+ export declare type FieldExtensionComponent<_TReturnValue, _TInputProps> = () => null;
88
+
89
+ /**
90
+ * Type for field extensions and being able to type
91
+ * incoming props easier.
92
+ *
93
+ * @public
94
+ */
95
+ export declare interface FieldExtensionComponentProps<TFieldReturnValue, TUiOptions extends {} = {}> extends FieldProps<TFieldReturnValue> {
96
+ uiSchema: FieldProps['uiSchema'] & {
97
+ 'ui:options'?: TUiOptions;
98
+ };
99
+ }
100
+
101
+ /**
102
+ * Type for the Custom Field Extension with the
103
+ * name and components and validation function.
104
+ *
105
+ * @public
106
+ */
107
+ export declare type FieldExtensionOptions<TFieldReturnValue = unknown, TInputProps = unknown> = {
108
+ name: string;
109
+ component: (props: FieldExtensionComponentProps<TFieldReturnValue, TInputProps>) => JSX.Element | null;
110
+ validation?: CustomFieldValidator<TFieldReturnValue>;
111
+ schema?: CustomFieldExtensionSchema;
112
+ };
113
+
114
+ /* Excluded from this release type: FormProps */
115
+
116
+ /**
117
+ * The response shape for the `listActions` call to the `scaffolder-backend`
118
+ *
119
+ * @public
120
+ */
121
+ export declare type ListActionsResponse = Array<Action>;
122
+
123
+ /**
124
+ * The shape of a `LogEvent` message from the `scaffolder-backend`
125
+ *
126
+ * @public
127
+ */
128
+ export declare type LogEvent = {
129
+ type: 'log' | 'completion';
130
+ body: {
131
+ message: string;
132
+ stepId?: string;
133
+ status?: ScaffolderTaskStatus;
134
+ };
135
+ createdAt: string;
136
+ id: string;
137
+ taskId: string;
138
+ };
139
+
140
+ /* Excluded from this release type: NextCustomFieldValidator */
141
+
142
+ /* Excluded from this release type: NextFieldExtensionComponentProps */
143
+
144
+ /* Excluded from this release type: NextFieldExtensionOptions */
145
+
146
+ /* Excluded from this release type: ParsedTemplateSchema */
147
+
148
+ /* Excluded from this release type: ReviewState */
149
+
150
+ /* Excluded from this release type: ReviewStateProps */
151
+
152
+ /**
153
+ * An API to interact with the scaffolder backend.
154
+ *
155
+ * @public
156
+ */
157
+ export declare interface ScaffolderApi {
158
+ getTemplateParameterSchema(templateRef: string): Promise<TemplateParameterSchema>;
159
+ /**
160
+ * Executes the scaffolding of a component, given a template and its
161
+ * parameter values.
162
+ *
163
+ * @param options - The {@link ScaffolderScaffoldOptions} the scaffolding.
164
+ */
165
+ scaffold(options: ScaffolderScaffoldOptions): Promise<ScaffolderScaffoldResponse>;
166
+ getTask(taskId: string): Promise<ScaffolderTask>;
167
+ listTasks?(options: {
168
+ filterByOwnership: 'owned' | 'all';
169
+ }): Promise<{
170
+ tasks: ScaffolderTask[];
171
+ }>;
172
+ getIntegrationsList(options: ScaffolderGetIntegrationsListOptions): Promise<ScaffolderGetIntegrationsListResponse>;
173
+ /**
174
+ * Returns a list of all installed actions.
175
+ */
176
+ listActions(): Promise<ListActionsResponse>;
177
+ streamLogs(options: ScaffolderStreamLogsOptions): Observable<LogEvent>;
178
+ dryRun?(options: ScaffolderDryRunOptions): Promise<ScaffolderDryRunResponse>;
179
+ }
180
+
181
+ /** @public */
182
+ export declare const scaffolderApiRef: ApiRef<ScaffolderApi>;
183
+
184
+ /** @public */
185
+ export declare interface ScaffolderDryRunOptions {
186
+ template: JsonValue;
187
+ values: JsonObject;
188
+ secrets?: Record<string, string>;
189
+ directoryContents: {
190
+ path: string;
191
+ base64Content: string;
192
+ }[];
193
+ }
194
+
195
+ /** @public */
196
+ export declare interface ScaffolderDryRunResponse {
197
+ directoryContents: Array<{
198
+ path: string;
199
+ base64Content: string;
200
+ executable: boolean;
201
+ }>;
202
+ log: Array<Pick<LogEvent, 'body'>>;
203
+ steps: TaskStep[];
204
+ output: ScaffolderTaskOutput;
205
+ }
206
+
207
+ /**
208
+ * The Wrapping component for defining fields extensions inside
209
+ *
210
+ * @public
211
+ */
212
+ export declare const ScaffolderFieldExtensions: React_2.ComponentType<React_2.PropsWithChildren<{}>>;
213
+
214
+ /**
215
+ * The arguments for `getIntegrationsList`.
216
+ *
217
+ * @public
218
+ */
219
+ export declare interface ScaffolderGetIntegrationsListOptions {
220
+ allowedHosts: string[];
221
+ }
222
+
223
+ /**
224
+ * The response shape for `getIntegrationsList`.
225
+ *
226
+ * @public
227
+ */
228
+ export declare interface ScaffolderGetIntegrationsListResponse {
229
+ integrations: {
230
+ type: string;
231
+ title: string;
232
+ host: string;
233
+ }[];
234
+ }
235
+
236
+ /** @public */
237
+ export declare type ScaffolderOutputLink = {
238
+ title?: string;
239
+ icon?: string;
240
+ url?: string;
241
+ entityRef?: string;
242
+ };
243
+
244
+ /**
245
+ * The input options to the `scaffold` method of the `ScaffolderClient`.
246
+ *
247
+ * @public
248
+ */
249
+ export declare interface ScaffolderScaffoldOptions {
250
+ templateRef: string;
251
+ values: Record<string, JsonValue>;
252
+ secrets?: Record<string, string>;
253
+ }
254
+
255
+ /**
256
+ * The response shape of the `scaffold` method of the `ScaffolderClient`.
257
+ *
258
+ * @public
259
+ */
260
+ export declare interface ScaffolderScaffoldResponse {
261
+ taskId: string;
262
+ }
263
+
264
+ /**
265
+ * The input options to the `streamLogs` method of the `ScaffolderClient`.
266
+ *
267
+ * @public
268
+ */
269
+ export declare interface ScaffolderStreamLogsOptions {
270
+ taskId: string;
271
+ after?: number;
272
+ }
273
+
274
+ /**
275
+ * The shape of each task returned from the `scaffolder-backend`
276
+ *
277
+ * @public
278
+ */
279
+ export declare type ScaffolderTask = {
280
+ id: string;
281
+ spec: TaskSpec;
282
+ status: 'failed' | 'completed' | 'processing' | 'open' | 'cancelled';
283
+ lastHeartbeatAt: string;
284
+ createdAt: string;
285
+ };
286
+
287
+ /** @public */
288
+ export declare type ScaffolderTaskOutput = {
289
+ links?: ScaffolderOutputLink[];
290
+ } & {
291
+ [key: string]: unknown;
292
+ };
293
+
294
+ /**
295
+ * The status of each task in a Scaffolder Job
296
+ *
297
+ * @public
298
+ */
299
+ export declare type ScaffolderTaskStatus = 'open' | 'processing' | 'failed' | 'completed' | 'skipped';
300
+
301
+ /**
302
+ * The return type from the useTemplateSecrets hook.
303
+ * @public
304
+ */
305
+ export declare interface ScaffolderUseTemplateSecrets {
306
+ setSecrets: (input: Record<string, string>) => void;
307
+ secrets: Record<string, string>;
308
+ }
309
+
310
+ /**
311
+ * The Context Provider that holds the state for the secrets.
312
+ * @public
313
+ */
314
+ export declare const SecretsContextProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
315
+
316
+ /* Excluded from this release type: Stepper */
317
+
318
+ /* Excluded from this release type: StepperProps */
319
+
320
+ /* Excluded from this release type: TemplateCard */
321
+
322
+ /* Excluded from this release type: TemplateCardProps */
323
+
324
+ /* Excluded from this release type: TemplateGroup */
325
+
326
+ /* Excluded from this release type: TemplateGroupProps */
327
+
328
+ /**
329
+ * The shape of each entry of parameters which gets rendered
330
+ * as a separate step in the wizard input
331
+ *
332
+ * @public
333
+ */
334
+ export declare type TemplateParameterSchema = {
335
+ title: string;
336
+ description?: string;
337
+ steps: Array<{
338
+ title: string;
339
+ description?: string;
340
+ schema: JsonObject;
341
+ }>;
342
+ };
343
+
344
+ /**
345
+ * Hook that returns all custom field extensions from the current outlet.
346
+ * @public
347
+ */
348
+ export declare const useCustomFieldExtensions: <TComponentDataType = FieldExtensionOptions<unknown, unknown>>(outlet: React.ReactNode) => TComponentDataType[];
349
+
350
+ /* Excluded from this release type: useFormDataFromQuery */
351
+
352
+ /* Excluded from this release type: useTemplateSchema */
353
+
354
+ /**
355
+ * Hook to access the secrets context to be able to set secrets that are
356
+ * passed to the Scaffolder backend.
357
+ * @public
358
+ */
359
+ export declare const useTemplateSecrets: () => ScaffolderUseTemplateSecrets;
360
+
361
+ export { }