@shopify/cli-kit 3.44.1 → 3.45.0-pre.2

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.
Files changed (105) hide show
  1. package/README.md +15 -7
  2. package/assets/cli-ruby/lib/project_types/extension/messages/messages.rb +0 -2
  3. package/assets/cli-ruby/lib/project_types/theme/commands/pull.rb +6 -0
  4. package/assets/cli-ruby/lib/project_types/theme/commands/push.rb +6 -0
  5. package/assets/cli-ruby/lib/shopify_cli/constants.rb +1 -0
  6. package/assets/cli-ruby/lib/shopify_cli/environment.rb +4 -0
  7. package/assets/cli-ruby/lib/shopify_cli/theme/dev_server/hot_reload.rb +1 -1
  8. package/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +3 -0
  9. package/assets/cli-ruby/lib/shopify_cli/theme/extension/dev_server.rb +3 -3
  10. package/assets/cli-ruby/lib/shopify_cli/theme/extension/host_theme.rb +4 -4
  11. package/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/extension_serve_job.rb +4 -6
  12. package/assets/cli-ruby/lib/shopify_cli/theme/extension/ui/host_theme_raw_progress_bar.rb +40 -0
  13. package/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui/progress_plain.rb +50 -0
  14. package/assets/cli-ruby/vendor/deps/cli-ui/lib/cli/ui.rb +15 -14
  15. package/dist/private/node/api/graphql.js +12 -23
  16. package/dist/private/node/api/graphql.js.map +1 -1
  17. package/dist/private/node/api.d.ts +1 -1
  18. package/dist/private/node/api.js +28 -9
  19. package/dist/private/node/api.js.map +1 -1
  20. package/dist/private/node/constants.d.ts +0 -1
  21. package/dist/private/node/constants.js +0 -1
  22. package/dist/private/node/constants.js.map +1 -1
  23. package/dist/private/node/session/redirect-listener.js +2 -3
  24. package/dist/private/node/session/redirect-listener.js.map +1 -1
  25. package/dist/private/node/session/schema.d.ts +28 -28
  26. package/dist/private/node/session/schema.js +12 -12
  27. package/dist/private/node/session/schema.js.map +1 -1
  28. package/dist/private/node/testing/ui.d.ts +11 -0
  29. package/dist/private/node/testing/ui.js +15 -1
  30. package/dist/private/node/testing/ui.js.map +1 -1
  31. package/dist/private/node/ui/alert.d.ts +5 -1
  32. package/dist/private/node/ui/alert.js +2 -2
  33. package/dist/private/node/ui/alert.js.map +1 -1
  34. package/dist/private/node/ui/components/AutocompletePrompt.js +38 -12
  35. package/dist/private/node/ui/components/AutocompletePrompt.js.map +1 -1
  36. package/dist/private/node/ui/components/AutocompletePrompt.test.js +56 -36
  37. package/dist/private/node/ui/components/AutocompletePrompt.test.js.map +1 -1
  38. package/dist/private/node/ui/components/ConcurrentOutput.d.ts +5 -1
  39. package/dist/private/node/ui/components/ConcurrentOutput.js +15 -13
  40. package/dist/private/node/ui/components/ConcurrentOutput.js.map +1 -1
  41. package/dist/private/node/ui/components/ConcurrentOutput.test.js +20 -11
  42. package/dist/private/node/ui/components/ConcurrentOutput.test.js.map +1 -1
  43. package/dist/private/node/ui/components/FullScreen.js +1 -1
  44. package/dist/private/node/ui/components/FullScreen.js.map +1 -1
  45. package/dist/private/node/ui/components/SelectInput.d.ts +7 -2
  46. package/dist/private/node/ui/components/SelectInput.js +73 -60
  47. package/dist/private/node/ui/components/SelectInput.js.map +1 -1
  48. package/dist/private/node/ui/components/SelectInput.test.js +72 -2
  49. package/dist/private/node/ui/components/SelectInput.test.js.map +1 -1
  50. package/dist/private/node/ui/components/SelectPrompt.js +38 -12
  51. package/dist/private/node/ui/components/SelectPrompt.js.map +1 -1
  52. package/dist/private/node/ui/components/SelectPrompt.test.js +52 -1
  53. package/dist/private/node/ui/components/SelectPrompt.test.js.map +1 -1
  54. package/dist/private/node/ui/components/Tasks.js +9 -1
  55. package/dist/private/node/ui/components/Tasks.js.map +1 -1
  56. package/dist/private/node/ui/components/TextAnimation.js +4 -4
  57. package/dist/private/node/ui/components/TextAnimation.js.map +1 -1
  58. package/dist/private/node/ui/components/TextPrompt.js +4 -4
  59. package/dist/private/node/ui/components/TextPrompt.js.map +1 -1
  60. package/dist/private/node/ui/hooks/use-layout.d.ts +6 -0
  61. package/dist/private/node/ui/hooks/use-layout.js +31 -12
  62. package/dist/private/node/ui/hooks/use-layout.js.map +1 -1
  63. package/dist/private/node/ui.d.ts +11 -3
  64. package/dist/private/node/ui.js +14 -10
  65. package/dist/private/node/ui.js.map +1 -1
  66. package/dist/public/common/object.d.ts +1 -1
  67. package/dist/public/common/object.js +1 -1
  68. package/dist/public/common/object.js.map +1 -1
  69. package/dist/public/common/version.d.ts +1 -1
  70. package/dist/public/common/version.js +1 -1
  71. package/dist/public/common/version.js.map +1 -1
  72. package/dist/public/node/base-command.d.ts +1 -4
  73. package/dist/public/node/base-command.js +17 -19
  74. package/dist/public/node/base-command.js.map +1 -1
  75. package/dist/public/node/context/local.d.ts +0 -7
  76. package/dist/public/node/context/local.js +0 -9
  77. package/dist/public/node/context/local.js.map +1 -1
  78. package/dist/public/node/environments.d.ts +7 -8
  79. package/dist/public/node/environments.js +23 -25
  80. package/dist/public/node/environments.js.map +1 -1
  81. package/dist/public/node/http.d.ts +0 -1
  82. package/dist/public/node/http.js +0 -1
  83. package/dist/public/node/http.js.map +1 -1
  84. package/dist/public/node/node-package-manager.d.ts +1 -1
  85. package/dist/public/node/node-package-manager.js.map +1 -1
  86. package/dist/public/node/output.d.ts +1 -1
  87. package/dist/public/node/output.js.map +1 -1
  88. package/dist/public/node/path.js +1 -1
  89. package/dist/public/node/path.js.map +1 -1
  90. package/dist/public/node/ruby.d.ts +1 -0
  91. package/dist/public/node/ruby.js +35 -15
  92. package/dist/public/node/ruby.js.map +1 -1
  93. package/dist/public/node/schema.d.ts +1 -1
  94. package/dist/public/node/schema.js +1 -1
  95. package/dist/public/node/schema.js.map +1 -1
  96. package/dist/public/node/themes/theme-manager.d.ts +1 -1
  97. package/dist/public/node/themes/theme-manager.js.map +1 -1
  98. package/dist/public/node/ui.d.ts +182 -121
  99. package/dist/public/node/ui.js +172 -120
  100. package/dist/public/node/ui.js.map +1 -1
  101. package/dist/tsconfig.tsbuildinfo +1 -1
  102. package/package.json +20 -19
  103. package/dist/private/node/ui/components/TextWithBackground.d.ts +0 -12
  104. package/dist/private/node/ui/components/TextWithBackground.js +0 -39
  105. package/dist/private/node/ui/components/TextWithBackground.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  import { FatalError as Fatal } from './error.js';
2
2
  import { Logger, LogLevel } from './output.js';
3
3
  import { ConcurrentOutputProps } from '../../private/node/ui/components/ConcurrentOutput.js';
4
- import { AlertProps, CustomSection } from '../../private/node/ui/components/Alert.js';
4
+ import { AlertOptions } from '../../private/node/ui/alert.js';
5
+ import { CustomSection } from '../../private/node/ui/components/Alert.js';
5
6
  import ScalarDict from '../../private/node/ui/components/Table/ScalarDict.js';
6
7
  import { TableColumn, TableProps } from '../../private/node/ui/components/Table/Table.js';
7
8
  import { SelectPromptProps } from '../../private/node/ui/components/SelectPrompt.js';
@@ -16,226 +17,286 @@ export interface RenderConcurrentOptions extends PartialBy<ConcurrentOutputProps
16
17
  }
17
18
  /**
18
19
  * Renders output from concurrent processes to the terminal with {@link ConcurrentOutput}.
20
+ * @example
21
+ * 0000-00-00 00:00:00 | backend | first backend message
22
+ * 0000-00-00 00:00:00 | backend | second backend message
23
+ * 0000-00-00 00:00:00 | backend | third backend message
24
+ * 0000-00-00 00:00:00 | frontend | first frontend message
25
+ * 0000-00-00 00:00:00 | frontend | second frontend message
26
+ * 0000-00-00 00:00:00 | frontend | third frontend message
27
+ *
28
+ * › Press p | open your browser
29
+ * › Press q | quit.
30
+ *
31
+ * Preview URL: https://shopify.com
32
+ *
19
33
  */
20
34
  export declare function renderConcurrent({ renderOptions, ...props }: RenderConcurrentOptions): Promise<void>;
21
35
  export type AlertCustomSection = CustomSection;
22
- export type RenderAlertOptions = Omit<AlertProps, 'type'>;
36
+ export type RenderAlertOptions = Omit<AlertOptions, 'type'>;
23
37
  /**
24
38
  * Renders an information banner to the console.
25
- *
26
- * Basic:
27
- *
28
- * ```
39
+ * @example Basic
29
40
  * ╭─ info ───────────────────────────────────────────────────╮
30
41
  * │ │
31
- * │ Body
42
+ * │ CLI update available
43
+ * │ │
44
+ * │ Run `npm run shopify upgrade`. │
32
45
  * │ │
33
46
  * ╰──────────────────────────────────────────────────────────╯
34
- * ```
35
47
  *
36
- * Complete:
37
- * ```
48
+ * @example Complete
38
49
  * ╭─ info ───────────────────────────────────────────────────╮
39
50
  * │ │
40
- * │ Title
41
- * │ │
42
- * │ Body │
51
+ * │ my-app initialized and ready to build.
43
52
  * │ │
44
53
  * │ Next steps │
45
- * │ • Run `cd santorini-goods`
54
+ * │ • Run `cd verification-app`
46
55
  * │ • To preview your project, run `npm app dev` │
47
56
  * │ • To add extensions, run `npm generate extension` │
48
57
  * │ │
49
58
  * │ Reference │
50
59
  * │ • Run `npm shopify help` │
51
- * │ • Press 'return' to open the dev docs:
52
- * │ https://shopify.dev │
60
+ * │ • Dev docs ( https://shopify.dev )
53
61
  * │ │
54
- * │ Link: https://shopify.com
62
+ * │ Custom section
63
+ * │ • Item 1 │
64
+ * │ • Item 2 │
65
+ * │ • Item 3 │
55
66
  * │ │
56
67
  * ╰──────────────────────────────────────────────────────────╯
57
- * ```
68
+ *
58
69
  */
59
- export declare function renderInfo(options: RenderAlertOptions): void;
70
+ export declare function renderInfo(options: RenderAlertOptions): string | undefined;
60
71
  /**
61
72
  * Renders a success banner to the console.
62
- *
63
- * Basic:
64
- *
65
- * ```
73
+ * @example Basic
66
74
  * ╭─ success ────────────────────────────────────────────────╮
67
75
  * │ │
68
- * │ Title
76
+ * │ CLI updated.
77
+ * │ │
78
+ * │ You are now running version 3.47. │
69
79
  * │ │
70
80
  * ╰──────────────────────────────────────────────────────────╯
71
- * ```
72
81
  *
73
- * Complete:
74
- * ```
82
+ * @example Complete
75
83
  * ╭─ success ────────────────────────────────────────────────╮
76
84
  * │ │
77
- * │ Title
85
+ * │ Deployment successful.
78
86
  * │ │
79
- * │ Body
87
+ * │ Your extensions have been uploaded to your Shopify
88
+ * │ Partners Dashboard. │
80
89
  * │ │
81
90
  * │ Next steps │
82
- * │ • Run `cd santorini-goods`
83
- * │ • To preview your project, run `npm app dev`
84
- * │ • To add extensions, run `npm generate extension`
85
- * │ │
86
- * │ Reference │
87
- * │ • Run `npm shopify help` │
88
- * │ • Press 'return' to open the dev docs: │
89
- * │ https://shopify.dev │
90
- * │ │
91
- * │ Link: https://shopify.com │
91
+ * │ • See your deployment and set it live ( https://part
92
+ * │ ners.shopify.com/1797046/apps/4523695/deployments
93
+ * │ )
92
94
  * │ │
93
95
  * ╰──────────────────────────────────────────────────────────╯
94
- * ```
96
+ *
95
97
  */
96
- export declare function renderSuccess(options: RenderAlertOptions): void;
98
+ export declare function renderSuccess(options: RenderAlertOptions): string | undefined;
97
99
  /**
98
100
  * Renders a warning banner to the console.
99
- *
100
- * Basic:
101
- *
102
- * ```
101
+ * @example Basic
103
102
  * ╭─ warning ────────────────────────────────────────────────╮
104
103
  * │ │
105
- * │ Title
104
+ * │ You have reached your limit of checkout extensions for
105
+ * │ this app. │
106
+ * │ │
107
+ * │ You can free up space for a new one by deleting an │
108
+ * │ existing one. │
106
109
  * │ │
107
110
  * ╰──────────────────────────────────────────────────────────╯
108
- * ```
109
111
  *
110
- * Complete:
111
- * ```
112
+ * @example Complete
112
113
  * ╭─ warning ────────────────────────────────────────────────╮
113
114
  * │ │
114
- * │ Title
115
+ * │ Required access scope update.
115
116
  * │ │
116
- * │ Body
117
- * │
118
- * │ Next steps │
119
- * │ • Run `cd santorini-goods` │
120
- * │ • To preview your project, run `npm app dev` │
121
- * │ • To add extensions, run `npm generate extension` │
117
+ * │ The deadline for re-selecting your app scopes is May
118
+ * │ 1, 2022.
122
119
  * │ │
123
120
  * │ Reference │
124
- * │ • Run `npm shopify help`
125
- * │ • Press 'return' to open the dev docs: │
126
- * │ https://shopify.dev │
127
- * │ │
128
- * │ Link: https://shopify.com │
121
+ * │ • Dev docs ( https://shopify.dev/app/scopes )
129
122
  * │ │
130
123
  * ╰──────────────────────────────────────────────────────────╯
131
- * ```
124
+ *
132
125
  */
133
- export declare function renderWarning(options: RenderAlertOptions): void;
126
+ export declare function renderWarning(options: RenderAlertOptions): string | undefined;
127
+ interface RenderFatalErrorOptions {
128
+ renderOptions?: RenderOptions;
129
+ }
134
130
  /**
135
131
  * Renders a Fatal error to the console inside a banner.
132
+ * @example Basic
133
+ * ╭─ error ──────────────────────────────────────────────────╮
134
+ * │ │
135
+ * │ Something went wrong. │
136
+ * │ │
137
+ * │ To investigate the issue, examine this stack trace: │
138
+ * │ at _compile (internal/modules/cjs/loader.js:1137) │
139
+ * │ at js (internal/modules/cjs/loader.js:1157) │
140
+ * │ at load (internal/modules/cjs/loader.js:985) │
141
+ * │ at _load (internal/modules/cjs/loader.js:878) │
142
+ * │ │
143
+ * ╰──────────────────────────────────────────────────────────╯
136
144
  *
137
- * ```
145
+ * @example Complete
138
146
  * ╭─ error ──────────────────────────────────────────────────╮
139
147
  * │ │
140
- * │ Couldn't connect to the Shopify Partner Dashboard.
148
+ * │ No Organization found
141
149
  * │ │
142
- * │ Check your internet connection and try again.
150
+ * │ Next steps
151
+ * │ • Have you created a Shopify Partners organization ( │
152
+ * │ https://partners.shopify.com/signup )? │
153
+ * │ • Have you confirmed your accounts from the emails │
154
+ * │ you received? │
155
+ * │ • Need to connect to a different App or │
156
+ * │ organization? Run the command again with `--reset` │
143
157
  * │ │
144
158
  * ╰──────────────────────────────────────────────────────────╯
145
- * ```
159
+ *
146
160
  */
147
- export declare function renderFatalError(error: Fatal): void;
161
+ export declare function renderFatalError(error: Fatal, { renderOptions }?: RenderFatalErrorOptions): string | undefined;
162
+ export interface RenderSeletPromptOptions<T> extends Omit<SelectPromptProps<T>, 'onSubmit'> {
163
+ renderOptions?: RenderOptions;
164
+ }
148
165
  /**
149
166
  * Renders a select prompt to the console.
150
- *
151
- * ```
167
+ * @example
152
168
  * ? Associate your project with the org Castile Ventures?
153
169
  *
154
- * Add: • new-ext
170
+ * Add: • new-ext
155
171
  *
156
- * Remove: • integrated-demand-ext
157
- * • order-discount
172
+ * Remove: • integrated-demand-ext
173
+ * • order-discount
158
174
  *
159
- * \> (f) first
160
- * (s) second
161
- * (3) third
162
- * (4) fourth
163
- * (5) seventh
164
- * (6) tenth
175
+ * Automations
176
+ * > (a) fifth
177
+ * (2) sixth
165
178
  *
166
- * Automations
167
- * (7) fifth
168
- * (8) sixth
179
+ * Merchant Admin
180
+ * (3) eighth
181
+ * (4) ninth
169
182
  *
170
- * Merchant Admin
171
- * (9) eighth
172
- * (10) ninth
183
+ * Other
184
+ * (f) first
185
+ * (s) second
186
+ * (7) third
187
+ * (8) fourth
188
+ * (9) seventh
189
+ * (10) tenth
190
+ *
191
+ * Press ↑↓ arrows to select, enter to confirm
173
192
  *
174
- * Press ↑↓ arrows to select, enter to confirm
175
- * ```
176
193
  */
177
- export declare function renderSelectPrompt<T>(props: Omit<SelectPromptProps<T>, 'onSubmit'>): Promise<T>;
194
+ export declare function renderSelectPrompt<T>({ renderOptions, ...props }: RenderSeletPromptOptions<T>): Promise<T>;
178
195
  export interface RenderConfirmationPromptOptions extends Pick<SelectPromptProps<boolean>, 'message' | 'infoTable'> {
179
196
  confirmationMessage?: string;
180
197
  cancellationMessage?: string;
198
+ renderOptions?: RenderOptions;
181
199
  }
182
200
  /**
183
201
  * Renders a confirmation prompt to the console.
202
+ * @example
203
+ * ? Delete the following themes from the store?
184
204
  *
185
- * ? Do you want to continue?
205
+ * first theme (#1)
206
+ * • second theme (#2)
186
207
  *
187
- * \> (y) Yes, confirm
188
- * (n) No, canccel
208
+ * > (y) Yes, confirm changes
209
+ * (n) Cancel
210
+ *
211
+ * Press ↑↓ arrows to select, enter or a shortcut to confirm
189
212
  *
190
- * Press ↑↓ arrows to select, enter to confirm
191
213
  */
192
- export declare function renderConfirmationPrompt({ message, infoTable, confirmationMessage, cancellationMessage, }: RenderConfirmationPromptOptions): Promise<boolean>;
214
+ export declare function renderConfirmationPrompt({ message, infoTable, confirmationMessage, cancellationMessage, renderOptions, }: RenderConfirmationPromptOptions): Promise<boolean>;
215
+ export interface RenderAutocompleteOptions<T> extends PartialBy<Omit<AutocompletePromptProps<T>, 'onSubmit'>, 'search'> {
216
+ renderOptions?: RenderOptions;
217
+ }
193
218
  /**
194
219
  * Renders an autocomplete prompt to the console.
195
- * ```
196
- * ? Select a template Type to search...
197
-
198
- * \> first
199
- * second
200
- * third
201
-
202
- * Press ↑↓ arrows to select, enter to confirm
203
- * ```
220
+ * @example
221
+ * ? Select a template: Type to search...
222
+ *
223
+ * > first
224
+ * second
225
+ * third
226
+ * fourth
227
+ * fifth
228
+ * sixth
229
+ * seventh
230
+ * eighth
231
+ * ninth
232
+ * tenth
233
+ * eleventh
234
+ * twelfth
235
+ * thirteenth
236
+ * fourteenth
237
+ * fifteenth
238
+ * sixteenth
239
+ * seventeenth
240
+ * eighteenth
241
+ * nineteenth
242
+ * twentieth
243
+ * twenty-first
244
+ * twenty-second
245
+ * twenty-third
246
+ * twenty-fourth
247
+ * twenty-fifth
248
+ *
249
+ * Press ↑↓ arrows to select, enter to confirm
250
+ *
204
251
  */
205
- export declare function renderAutocompletePrompt<T>(props: PartialBy<Omit<AutocompletePromptProps<T>, 'onSubmit'>, 'search'>): Promise<T>;
252
+ export declare function renderAutocompletePrompt<T>({ renderOptions, ...props }: RenderAutocompleteOptions<T>): Promise<T>;
253
+ interface RenderTableOptions<T extends ScalarDict> extends TableProps<T> {
254
+ renderOptions?: RenderOptions;
255
+ }
206
256
  /**
207
257
  * Renders a table to the console.
208
- *
209
- * ```
210
- * name role Identifier
211
- * ──────────────────────── ───────────── ──────────
212
- * Dawn [live] #1361
213
- * Studio #1363
214
- * Debut [unpublished] #1374
215
- * Development (1a23b4-MBP) [development] #1368
216
- * ```
258
+ * @example
259
+ * ID Name email
260
+ * ── ────────── ─────────────
261
+ * 1 John Doe jon@doe.com
262
+ * 2 Jane Doe jane@doe.com
263
+ * 3 John Smith jon@smith.com
217
264
  */
218
- export declare function renderTable<T extends ScalarDict>(props: TableProps<T>): void;
265
+ export declare function renderTable<T extends ScalarDict>({ renderOptions, ...props }: RenderTableOptions<T>): string | undefined;
266
+ interface RenderTasksOptions {
267
+ renderOptions?: RenderOptions;
268
+ }
219
269
  /**
220
270
  * Runs async tasks and displays their progress to the console.
271
+ * @example
272
+ * ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
273
+ * Installing dependencies ...
221
274
  */
222
- export declare function renderTasks<TContext>(tasks: Task<TContext>[]): Promise<void>;
275
+ export declare function renderTasks<TContext>(tasks: Task<TContext>[], { renderOptions }?: RenderTasksOptions): Promise<void>;
276
+ export interface RenderTextPromptOptions extends Omit<TextPromptProps, 'onSubmit'> {
277
+ renderOptions?: RenderOptions;
278
+ }
223
279
  /**
224
280
  * Renders a text prompt to the console.
225
- * ```
226
- * ? What is your name?
227
- * \> John
228
- * ```
281
+ * @example
282
+ * ? App project name (can be changed later):
283
+ * > expansive commerce app
284
+ * ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
285
+ *
229
286
  */
230
- export declare function renderTextPrompt(props: Omit<TextPromptProps, 'onSubmit'>): Promise<string>;
287
+ export declare function renderTextPrompt({ renderOptions, ...props }: RenderTextPromptOptions): Promise<string>;
231
288
  interface RenderTextOptions {
232
289
  text: string;
233
290
  logLevel?: LogLevel;
234
291
  logger?: Logger;
235
292
  }
236
293
  /** Renders a text string to the console.
237
- * Using this function makes sure that correct spacing is applied among the various components. */
238
- export declare function renderText({ text, logLevel, logger }: RenderTextOptions): void;
294
+ * Using this function makes sure that correct spacing is applied among the various components.
295
+ * @example
296
+ * Hello world!
297
+ *
298
+ */
299
+ export declare function renderText({ text, logLevel, logger }: RenderTextOptions): string;
239
300
  /** Waits for any key to be pressed except Ctrl+C which will terminate the process. */
240
301
  export declare const keypress: () => Promise<unknown>;
241
302
  export type Key = InkKey;