storybook 9.0.0-beta.1 → 9.0.0-beta.11

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 (94) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/actions/decorator.js +49 -52
  3. package/dist/actions/index.cjs +42 -44
  4. package/dist/actions/index.js +37 -40
  5. package/dist/actions/preview.cjs +44 -46
  6. package/dist/actions/preview.d.ts +501 -0
  7. package/dist/actions/preview.js +24 -27
  8. package/dist/babel/index.cjs +15060 -14974
  9. package/dist/babel/index.d.ts +37 -18
  10. package/dist/babel/index.js +15097 -15011
  11. package/dist/backgrounds/index.d.ts +501 -0
  12. package/dist/backgrounds/preview.d.ts +501 -0
  13. package/dist/bin/index.cjs +44 -44
  14. package/dist/bin/index.js +44 -44
  15. package/dist/builder-manager/index.cjs +303 -283
  16. package/dist/builder-manager/index.js +545 -524
  17. package/dist/channels/index.js +919 -941
  18. package/dist/cli/bin/index.cjs +4184 -736
  19. package/dist/cli/bin/index.js +4198 -748
  20. package/dist/cli/index.cjs +36838 -28392
  21. package/dist/cli/index.d.ts +974 -1
  22. package/dist/cli/index.js +41620 -33168
  23. package/dist/client-logger/index.d.ts +2 -1
  24. package/dist/common/index.cjs +4783 -4691
  25. package/dist/common/index.d.ts +8 -2
  26. package/dist/common/index.js +5165 -5069
  27. package/dist/components/index.cjs +7905 -5600
  28. package/dist/components/index.d.ts +12 -12
  29. package/dist/components/index.js +4713 -3786
  30. package/dist/controls/preview.d.ts +501 -0
  31. package/dist/core-server/index.cjs +6799 -6708
  32. package/dist/core-server/index.d.ts +526 -25
  33. package/dist/core-server/index.js +6948 -6851
  34. package/dist/core-server/presets/common-manager.js +4528 -3377
  35. package/dist/core-server/presets/common-override-preset.cjs +10 -12
  36. package/dist/core-server/presets/common-override-preset.js +3 -5
  37. package/dist/core-server/presets/common-preset.cjs +2301 -2238
  38. package/dist/core-server/presets/common-preset.js +2389 -2322
  39. package/dist/docs-tools/index.cjs +484 -464
  40. package/dist/docs-tools/index.js +781 -768
  41. package/dist/highlight/index.cjs +19 -18
  42. package/dist/highlight/index.d.ts +4 -5
  43. package/dist/highlight/index.js +3 -2
  44. package/dist/highlight/preview.cjs +314 -310
  45. package/dist/highlight/preview.d.ts +501 -0
  46. package/dist/highlight/preview.js +296 -292
  47. package/dist/instrumenter/index.cjs +561 -559
  48. package/dist/instrumenter/index.js +1564 -1516
  49. package/dist/manager/globals-module-info.cjs +2 -0
  50. package/dist/manager/globals-module-info.js +2 -0
  51. package/dist/manager/globals-runtime.js +23602 -23339
  52. package/dist/manager/runtime.js +4891 -4650
  53. package/dist/manager-api/index.cjs +2400 -2321
  54. package/dist/manager-api/index.d.ts +513 -1
  55. package/dist/manager-api/index.js +1951 -1903
  56. package/dist/manager-errors.js +37 -41
  57. package/dist/measure/index.d.ts +501 -0
  58. package/dist/measure/preview.d.ts +501 -0
  59. package/dist/node-logger/index.cjs +25 -25
  60. package/dist/node-logger/index.js +25 -25
  61. package/dist/outline/index.d.ts +501 -0
  62. package/dist/outline/preview.d.ts +501 -0
  63. package/dist/preview/runtime.js +35803 -35785
  64. package/dist/preview-api/index.cjs +1287 -1265
  65. package/dist/preview-api/index.d.ts +1 -1
  66. package/dist/preview-api/index.js +1367 -1361
  67. package/dist/preview-errors.js +152 -173
  68. package/dist/router/index.cjs +5674 -2282
  69. package/dist/router/index.d.ts +622 -243
  70. package/dist/router/index.js +1318 -872
  71. package/dist/server-errors.cjs +192 -177
  72. package/dist/server-errors.d.ts +11 -1
  73. package/dist/server-errors.js +173 -158
  74. package/dist/telemetry/index.cjs +4934 -1445
  75. package/dist/telemetry/index.d.ts +2 -1
  76. package/dist/telemetry/index.js +4966 -1475
  77. package/dist/test/index.cjs +1876 -1878
  78. package/dist/test/index.d.ts +1269 -83
  79. package/dist/test/index.js +9157 -9248
  80. package/dist/test/preview.cjs +49 -15862
  81. package/dist/test/preview.d.ts +520 -13
  82. package/dist/test/preview.js +42 -14493
  83. package/dist/theming/create.cjs +2244 -79
  84. package/dist/theming/create.js +951 -67
  85. package/dist/theming/index.cjs +3209 -1067
  86. package/dist/theming/index.js +1816 -947
  87. package/dist/types/index.cjs +4 -4
  88. package/dist/types/index.d.ts +3124 -2596
  89. package/dist/viewport/index.d.ts +502 -3
  90. package/dist/viewport/preview.d.ts +501 -0
  91. package/package.json +14 -38
  92. package/dist/test/spy.cjs +0 -258
  93. package/dist/test/spy.d.ts +0 -66
  94. package/dist/test/spy.js +0 -240
@@ -1,13 +1,22 @@
1
1
  import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';
2
2
  import { AsymmetricMatchersContaining, JestAssertion, ExpectStatic, MatchersObject, MatcherState } from '@vitest/expect';
3
- import * as domTestingLibrary from '@testing-library/dom';
4
- import { BoundFunctions } from '@testing-library/dom';
5
- import _userEvent, { userEvent as userEvent$1 } from '@testing-library/user-event';
6
- import { MockInstance, spyOn as spyOn$1, Mock as Mock$1, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
3
+ import * as _userEvent from '@testing-library/user-event';
4
+ import { userEvent as userEvent$1 } from '@testing-library/user-event';
5
+ import * as _testing_library_user_event_dist_cjs_setup_directApi_js from '@testing-library/user-event/dist/cjs/setup/directApi.js';
6
+ import * as _testing_library_user_event_dist_cjs_setup_setup_js from '@testing-library/user-event/dist/cjs/setup/setup.js';
7
+ import { MockInstance, spyOn as spyOn$1, Mock, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
7
8
  export * from '@vitest/spy';
8
9
  export { isMockFunction, mocks } from '@vitest/spy';
9
10
 
10
- type Promisify<Fn> = Fn extends (...args: infer A) => infer R ? (...args: A) => R extends Promise<any> ? R : Promise<R> : Fn;
11
+ type Promisify<Fn> = Fn extends {
12
+ <T>(...args: infer Args): infer Return;
13
+ } ? {
14
+ <T>(...args: Args): Return extends Promise<any> ? Return : Promise<Return>;
15
+ } : Fn extends {
16
+ (...args: infer Args): infer Return;
17
+ } ? {
18
+ (...args: Args): Return extends Promise<any> ? Return : Promise<Return>;
19
+ } : Fn;
11
20
  type PromisifyObject<O> = {
12
21
  [K in keyof O]: Promisify<O[K]>;
13
22
  };
@@ -34,92 +43,1269 @@ interface Expect extends AsymmetricMatchersContaining {
34
43
  not: AsymmetricMatchersContaining;
35
44
  }
36
45
 
37
- declare const buildQueries: typeof domTestingLibrary.buildQueries;
38
- declare const configure: typeof domTestingLibrary.configure;
39
- declare const createEvent: domTestingLibrary.CreateObject & domTestingLibrary.CreateFunction;
40
- declare const fireEvent: ((element: Element | Node | Document | Window, event: Event) => Promise<false> | Promise<true>) & PromisifyObject<domTestingLibrary.FireObject>;
41
- declare const findAllByAltText: typeof domTestingLibrary.findAllByAltText;
42
- declare const findAllByDisplayValue: typeof domTestingLibrary.findAllByDisplayValue;
43
- declare const findAllByLabelText: typeof domTestingLibrary.findAllByLabelText;
44
- declare const findAllByPlaceholderText: typeof domTestingLibrary.findAllByPlaceholderText;
45
- declare const findAllByRole: typeof domTestingLibrary.findAllByRole;
46
- declare const findAllByTestId: typeof domTestingLibrary.findAllByTestId;
47
- declare const findAllByText: typeof domTestingLibrary.findAllByText;
48
- declare const findAllByTitle: typeof domTestingLibrary.findAllByTitle;
49
- declare const findByAltText: typeof domTestingLibrary.findByAltText;
50
- declare const findByDisplayValue: typeof domTestingLibrary.findByDisplayValue;
51
- declare const findByLabelText: typeof domTestingLibrary.findByLabelText;
52
- declare const findByPlaceholderText: typeof domTestingLibrary.findByPlaceholderText;
53
- declare const findByRole: typeof domTestingLibrary.findByRole;
54
- declare const findByTestId: typeof domTestingLibrary.findByTestId;
55
- declare const findByText: typeof domTestingLibrary.findByText;
56
- declare const findByTitle: typeof domTestingLibrary.findByTitle;
57
- declare const getAllByAltText: typeof domTestingLibrary.getAllByAltText;
58
- declare const getAllByDisplayValue: typeof domTestingLibrary.getAllByDisplayValue;
59
- declare const getAllByLabelText: typeof domTestingLibrary.getAllByLabelText;
60
- declare const getAllByPlaceholderText: typeof domTestingLibrary.getAllByPlaceholderText;
61
- declare const getAllByRole: typeof domTestingLibrary.getAllByRole;
62
- declare const getAllByTestId: typeof domTestingLibrary.getAllByTestId;
63
- declare const getAllByText: typeof domTestingLibrary.getAllByText;
64
- declare const getAllByTitle: typeof domTestingLibrary.getAllByTitle;
65
- declare const getByAltText: typeof domTestingLibrary.getByAltText;
66
- declare const getByDisplayValue: typeof domTestingLibrary.getByDisplayValue;
67
- declare const getByLabelText: typeof domTestingLibrary.getByLabelText;
68
- declare const getByPlaceholderText: typeof domTestingLibrary.getByPlaceholderText;
69
- declare const getByRole: typeof domTestingLibrary.getByRole;
70
- declare const getByTestId: typeof domTestingLibrary.getByTestId;
71
- declare const getByText: typeof domTestingLibrary.getByText;
72
- declare const getByTitle: typeof domTestingLibrary.getByTitle;
73
- declare const getConfig: typeof domTestingLibrary.getConfig;
74
- declare const getDefaultNormalizer: typeof domTestingLibrary.getDefaultNormalizer;
75
- declare const getElementError: typeof domTestingLibrary.getElementError;
76
- declare const getNodeText: typeof domTestingLibrary.getNodeText;
77
- declare const getQueriesForElement: typeof domTestingLibrary.getQueriesForElement;
78
- declare const getRoles: typeof domTestingLibrary.getRoles;
79
- declare const getSuggestedQuery: typeof domTestingLibrary.getSuggestedQuery;
80
- declare const isInaccessible: typeof domTestingLibrary.isInaccessible;
81
- declare const logDOM: typeof domTestingLibrary.logDOM;
82
- declare const logRoles: typeof domTestingLibrary.logRoles;
83
- declare const prettyDOM: typeof domTestingLibrary.prettyDOM;
84
- declare const queries: typeof domTestingLibrary.queries;
85
- declare const queryAllByAltText: typeof domTestingLibrary.queryAllByAltText;
86
- declare const queryAllByAttribute: domTestingLibrary.AllByAttribute;
87
- declare const queryAllByDisplayValue: typeof domTestingLibrary.queryAllByDisplayValue;
88
- declare const queryAllByLabelText: typeof domTestingLibrary.queryAllByLabelText;
89
- declare const queryAllByPlaceholderText: typeof domTestingLibrary.queryAllByPlaceholderText;
90
- declare const queryAllByRole: typeof domTestingLibrary.queryAllByRole;
91
- declare const queryAllByTestId: typeof domTestingLibrary.queryAllByTestId;
92
- declare const queryAllByText: typeof domTestingLibrary.queryAllByText;
93
- declare const queryAllByTitle: typeof domTestingLibrary.queryAllByTitle;
94
- declare const queryByAltText: typeof domTestingLibrary.queryByAltText;
95
- declare const queryByAttribute: domTestingLibrary.QueryByAttribute;
96
- declare const queryByDisplayValue: typeof domTestingLibrary.queryByDisplayValue;
97
- declare const queryByLabelText: typeof domTestingLibrary.queryByLabelText;
98
- declare const queryByPlaceholderText: typeof domTestingLibrary.queryByPlaceholderText;
99
- declare const queryByRole: typeof domTestingLibrary.queryByRole;
100
- declare const queryByTestId: typeof domTestingLibrary.queryByTestId;
101
- declare const queryByText: typeof domTestingLibrary.queryByText;
102
- declare const queryByTitle: typeof domTestingLibrary.queryByTitle;
103
- declare const queryHelpers: typeof domTestingLibrary.queryHelpers;
104
- declare const screen: domTestingLibrary.Screen<typeof domTestingLibrary.queries>;
105
- declare const waitFor: typeof domTestingLibrary.waitFor;
106
- declare const waitForElementToBeRemoved: typeof domTestingLibrary.waitForElementToBeRemoved;
107
- declare const within: typeof domTestingLibrary.getQueriesForElement;
108
- declare const prettyFormat: typeof domTestingLibrary.prettyFormat;
46
+ // Disable automatic exports.
47
+
48
+
49
+ type ARIAWidgetRole =
50
+ | "button"
51
+ | "checkbox"
52
+ | "gridcell"
53
+ | "link"
54
+ | "menuitem"
55
+ | "menuitemcheckbox"
56
+ | "menuitemradio"
57
+ | "option"
58
+ | "progressbar"
59
+ | "radio"
60
+ | "scrollbar"
61
+ | "searchbox"
62
+ | "slider"
63
+ | "spinbutton"
64
+ | "switch"
65
+ | "tab"
66
+ | "tabpanel"
67
+ | "textbox"
68
+ | "treeitem";
69
+
70
+ type ARIACompositeWidgetRole =
71
+ | "combobox"
72
+ | "grid"
73
+ | "listbox"
74
+ | "menu"
75
+ | "menubar"
76
+ | "radiogroup"
77
+ | "tablist"
78
+ | "tree"
79
+ | "treegrid";
80
+
81
+ type ARIADocumentStructureRole =
82
+ | "application"
83
+ | "article"
84
+ | "blockquote"
85
+ | "caption"
86
+ | "cell"
87
+ | "columnheader"
88
+ | "definition"
89
+ | "deletion"
90
+ | "directory"
91
+ | "document"
92
+ | "emphasis"
93
+ | "feed"
94
+ | "figure"
95
+ | "generic"
96
+ | "group"
97
+ | "heading"
98
+ | "img"
99
+ | "insertion"
100
+ | "list"
101
+ | "listitem"
102
+ | "math"
103
+ | "meter"
104
+ | "none"
105
+ | "note"
106
+ | "paragraph"
107
+ | "presentation"
108
+ | "row"
109
+ | "rowgroup"
110
+ | "rowheader"
111
+ | "separator"
112
+ | "strong"
113
+ | "subscript"
114
+ | "superscript"
115
+ | "table"
116
+ | "term"
117
+ | "time"
118
+ | "toolbar"
119
+ | "tooltip";
120
+
121
+ type ARIALandmarkRole =
122
+ | "banner"
123
+ | "complementary"
124
+ | "contentinfo"
125
+ | "form"
126
+ | "main"
127
+ | "navigation"
128
+ | "region"
129
+ | "search";
130
+
131
+ type ARIALiveRegionRole = "alert" | "log" | "marquee" | "status" | "timer";
132
+
133
+ type ARIAWindowRole = "alertdialog" | "dialog";
134
+
135
+ type ARIAUncategorizedRole = "code";
136
+
137
+ type ARIARole =
138
+ | ARIAWidgetRole
139
+ | ARIACompositeWidgetRole
140
+ | ARIADocumentStructureRole
141
+ | ARIALandmarkRole
142
+ | ARIALiveRegionRole
143
+ | ARIAWindowRole
144
+ | ARIAUncategorizedRole;
145
+
146
+ type MatcherFunction = (
147
+ content: string,
148
+ element: Element | null,
149
+ ) => boolean
150
+ type Matcher = MatcherFunction | RegExp | number | string
151
+
152
+ // Get autocomplete for ARIARole union types, while still supporting another string
153
+ // Ref: https://github.com/microsoft/TypeScript/issues/29729#issuecomment-567871939
154
+ type ByRoleMatcher = ARIARole | (string & {})
155
+
156
+ type NormalizerFn = (text: string) => string
157
+
158
+ interface MatcherOptions {
159
+ exact?: boolean
160
+ /** Use normalizer with getDefaultNormalizer instead */
161
+ trim?: boolean
162
+ /** Use normalizer with getDefaultNormalizer instead */
163
+ collapseWhitespace?: boolean
164
+ normalizer?: NormalizerFn
165
+ /** suppress suggestions for a specific query */
166
+ suggest?: boolean
167
+ }
168
+
169
+ interface DefaultNormalizerOptions {
170
+ trim?: boolean
171
+ collapseWhitespace?: boolean
172
+ }
173
+
174
+ declare function getDefaultNormalizer$1(
175
+ options?: DefaultNormalizerOptions,
176
+ ): NormalizerFn
177
+
178
+ interface waitForOptions {
179
+ container?: HTMLElement
180
+ timeout?: number
181
+ interval?: number
182
+ onTimeout?: (error: Error) => Error
183
+ mutationObserverOptions?: MutationObserverInit
184
+ }
185
+
186
+ declare function waitFor$1<T>(
187
+ callback: () => Promise<T> | T,
188
+ options?: waitForOptions,
189
+ ): Promise<T>
190
+
191
+ type WithSuggest = {suggest?: boolean}
192
+
193
+ type GetErrorFunction<Arguments extends any[] = [string]> = (
194
+ c: Element | null,
195
+ ...args: Arguments
196
+ ) => string
197
+
198
+ interface SelectorMatcherOptions extends MatcherOptions {
199
+ selector?: string
200
+ ignore?: boolean | string
201
+ }
202
+
203
+ type QueryByAttribute = (
204
+ attribute: string,
205
+ container: HTMLElement,
206
+ id: Matcher,
207
+ options?: MatcherOptions,
208
+ ) => HTMLElement | null
209
+
210
+ type AllByAttribute = (
211
+ attribute: string,
212
+ container: HTMLElement,
213
+ id: Matcher,
214
+ options?: MatcherOptions,
215
+ ) => HTMLElement[]
216
+
217
+ declare const queryByAttribute$1: QueryByAttribute
218
+ declare const queryAllByAttribute$1: AllByAttribute
219
+ declare function getElementError$1(
220
+ message: string | null,
221
+ container: HTMLElement,
222
+ ): Error
223
+
224
+ /**
225
+ * query methods have a common call signature. Only the return type differs.
226
+ */
227
+ type QueryMethod<Arguments extends any[], Return> = (
228
+ container: HTMLElement,
229
+ ...args: Arguments
230
+ ) => Return
231
+ type QueryBy<Arguments extends any[]> = QueryMethod<
232
+ Arguments,
233
+ HTMLElement | null
234
+ >
235
+ type GetAllBy<Arguments extends any[]> = QueryMethod<
236
+ Arguments,
237
+ HTMLElement[]
238
+ >
239
+ type FindAllBy<Arguments extends any[]> = QueryMethod<
240
+ [Arguments[0], Arguments[1]?, waitForOptions?],
241
+ Promise<HTMLElement[]>
242
+ >
243
+ type GetBy<Arguments extends any[]> = QueryMethod<Arguments, HTMLElement>
244
+ type FindBy<Arguments extends any[]> = QueryMethod<
245
+ [Arguments[0], Arguments[1]?, waitForOptions?],
246
+ Promise<HTMLElement>
247
+ >
248
+
249
+ type BuiltQueryMethods<Arguments extends any[]> = [
250
+ QueryBy<Arguments>,
251
+ GetAllBy<Arguments>,
252
+ GetBy<Arguments>,
253
+ FindAllBy<Arguments>,
254
+ FindBy<Arguments>,
255
+ ]
256
+
257
+ declare function buildQueries$1<Arguments extends any[]>(
258
+ queryAllBy: GetAllBy<Arguments>,
259
+ getMultipleError: GetErrorFunction<Arguments>,
260
+ getMissingError: GetErrorFunction<Arguments>,
261
+ ): BuiltQueryMethods<Arguments>
262
+
263
+ type queryHelpers_d_AllByAttribute = AllByAttribute;
264
+ type queryHelpers_d_BuiltQueryMethods<Arguments extends any[]> = BuiltQueryMethods<Arguments>;
265
+ type queryHelpers_d_FindAllBy<Arguments extends any[]> = FindAllBy<Arguments>;
266
+ type queryHelpers_d_FindBy<Arguments extends any[]> = FindBy<Arguments>;
267
+ type queryHelpers_d_GetAllBy<Arguments extends any[]> = GetAllBy<Arguments>;
268
+ type queryHelpers_d_GetBy<Arguments extends any[]> = GetBy<Arguments>;
269
+ type queryHelpers_d_GetErrorFunction<Arguments extends any[] = [string]> = GetErrorFunction<Arguments>;
270
+ type queryHelpers_d_QueryBy<Arguments extends any[]> = QueryBy<Arguments>;
271
+ type queryHelpers_d_QueryByAttribute = QueryByAttribute;
272
+ type queryHelpers_d_QueryMethod<Arguments extends any[], Return> = QueryMethod<Arguments, Return>;
273
+ type queryHelpers_d_SelectorMatcherOptions = SelectorMatcherOptions;
274
+ type queryHelpers_d_WithSuggest = WithSuggest;
275
+ declare namespace queryHelpers_d {
276
+ export { type queryHelpers_d_AllByAttribute as AllByAttribute, type queryHelpers_d_BuiltQueryMethods as BuiltQueryMethods, type queryHelpers_d_FindAllBy as FindAllBy, type queryHelpers_d_FindBy as FindBy, type queryHelpers_d_GetAllBy as GetAllBy, type queryHelpers_d_GetBy as GetBy, type queryHelpers_d_GetErrorFunction as GetErrorFunction, type queryHelpers_d_QueryBy as QueryBy, type queryHelpers_d_QueryByAttribute as QueryByAttribute, type queryHelpers_d_QueryMethod as QueryMethod, type queryHelpers_d_SelectorMatcherOptions as SelectorMatcherOptions, type queryHelpers_d_WithSuggest as WithSuggest, buildQueries$1 as buildQueries, getElementError$1 as getElementError, queryAllByAttribute$1 as queryAllByAttribute, queryByAttribute$1 as queryByAttribute };
277
+ }
278
+
279
+ type QueryByBoundAttribute<T extends HTMLElement = HTMLElement> = (
280
+ container: HTMLElement,
281
+ id: Matcher,
282
+ options?: MatcherOptions,
283
+ ) => T | null
284
+
285
+ type AllByBoundAttribute<T extends HTMLElement = HTMLElement> = (
286
+ container: HTMLElement,
287
+ id: Matcher,
288
+ options?: MatcherOptions,
289
+ ) => T[]
290
+
291
+ type FindAllByBoundAttribute<T extends HTMLElement = HTMLElement> = (
292
+ container: HTMLElement,
293
+ id: Matcher,
294
+ options?: MatcherOptions,
295
+ waitForElementOptions?: waitForOptions,
296
+ ) => Promise<T[]>
297
+
298
+ type GetByBoundAttribute<T extends HTMLElement = HTMLElement> = (
299
+ container: HTMLElement,
300
+ id: Matcher,
301
+ options?: MatcherOptions,
302
+ ) => T
303
+
304
+ type FindByBoundAttribute<T extends HTMLElement = HTMLElement> = (
305
+ container: HTMLElement,
306
+ id: Matcher,
307
+ options?: MatcherOptions,
308
+ waitForElementOptions?: waitForOptions,
309
+ ) => Promise<T>
310
+
311
+ type QueryByText<T extends HTMLElement = HTMLElement> = (
312
+ container: HTMLElement,
313
+ id: Matcher,
314
+ options?: SelectorMatcherOptions,
315
+ ) => T | null
316
+
317
+ type AllByText<T extends HTMLElement = HTMLElement> = (
318
+ container: HTMLElement,
319
+ id: Matcher,
320
+ options?: SelectorMatcherOptions,
321
+ ) => T[]
322
+
323
+ type FindAllByText<T extends HTMLElement = HTMLElement> = (
324
+ container: HTMLElement,
325
+ id: Matcher,
326
+ options?: SelectorMatcherOptions,
327
+ waitForElementOptions?: waitForOptions,
328
+ ) => Promise<T[]>
329
+
330
+ type GetByText<T extends HTMLElement = HTMLElement> = (
331
+ container: HTMLElement,
332
+ id: Matcher,
333
+ options?: SelectorMatcherOptions,
334
+ ) => T
335
+
336
+ type FindByText<T extends HTMLElement = HTMLElement> = (
337
+ container: HTMLElement,
338
+ id: Matcher,
339
+ options?: SelectorMatcherOptions,
340
+ waitForElementOptions?: waitForOptions,
341
+ ) => Promise<T>
342
+
343
+ interface ByRoleOptions {
344
+ /** suppress suggestions for a specific query */
345
+ suggest?: boolean
346
+ /**
347
+ * If true includes elements in the query set that are usually excluded from
348
+ * the accessibility tree. `role="none"` or `role="presentation"` are included
349
+ * in either case.
350
+ */
351
+ hidden?: boolean
352
+ /**
353
+ * If true only includes elements in the query set that are marked as
354
+ * selected in the accessibility tree, i.e., `aria-selected="true"`
355
+ */
356
+ selected?: boolean
357
+ /**
358
+ * If true only includes elements in the query set that are marked as
359
+ * busy in the accessibility tree, i.e., `aria-busy="true"`
360
+ */
361
+ busy?: boolean
362
+ /**
363
+ * If true only includes elements in the query set that are marked as
364
+ * checked in the accessibility tree, i.e., `aria-checked="true"`
365
+ */
366
+ checked?: boolean
367
+ /**
368
+ * If true only includes elements in the query set that are marked as
369
+ * pressed in the accessibility tree, i.e., `aria-pressed="true"`
370
+ */
371
+ pressed?: boolean
372
+ /**
373
+ * Filters elements by their `aria-current` state. `true` and `false` match `aria-current="true"` and `aria-current="false"` (as well as a missing `aria-current` attribute) respectively.
374
+ */
375
+ current?: boolean | string
376
+ /**
377
+ * If true only includes elements in the query set that are marked as
378
+ * expanded in the accessibility tree, i.e., `aria-expanded="true"`
379
+ */
380
+ expanded?: boolean
381
+ /**
382
+ * Includes elements with the `"heading"` role matching the indicated level,
383
+ * either by the semantic HTML heading elements `<h1>-<h6>` or matching
384
+ * the `aria-level` attribute.
385
+ */
386
+ level?: number
387
+ value?: {
388
+ now?: number
389
+ min?: number
390
+ max?: number
391
+ text?: Matcher
392
+ }
393
+ /**
394
+ * Includes every role used in the `role` attribute
395
+ * For example *ByRole('progressbar', {queryFallbacks: true})` will find <div role="meter progressbar">`.
396
+ */
397
+ queryFallbacks?: boolean
398
+ /**
399
+ * Only considers elements with the specified accessible name.
400
+ */
401
+ name?:
402
+ | RegExp
403
+ | string
404
+ | ((accessibleName: string, element: Element) => boolean)
405
+ /**
406
+ * Only considers elements with the specified accessible description.
407
+ */
408
+ description?:
409
+ | RegExp
410
+ | string
411
+ | ((accessibleDescription: string, element: Element) => boolean)
412
+ }
413
+
414
+ type AllByRole<T extends HTMLElement = HTMLElement> = (
415
+ container: HTMLElement,
416
+ role: ByRoleMatcher,
417
+ options?: ByRoleOptions,
418
+ ) => T[]
419
+
420
+ type GetByRole<T extends HTMLElement = HTMLElement> = (
421
+ container: HTMLElement,
422
+ role: ByRoleMatcher,
423
+ options?: ByRoleOptions,
424
+ ) => T
425
+
426
+ type QueryByRole<T extends HTMLElement = HTMLElement> = (
427
+ container: HTMLElement,
428
+ role: ByRoleMatcher,
429
+ options?: ByRoleOptions,
430
+ ) => T | null
431
+
432
+ type FindByRole<T extends HTMLElement = HTMLElement> = (
433
+ container: HTMLElement,
434
+ role: ByRoleMatcher,
435
+ options?: ByRoleOptions,
436
+ waitForElementOptions?: waitForOptions,
437
+ ) => Promise<T>
438
+
439
+ type FindAllByRole<T extends HTMLElement = HTMLElement> = (
440
+ container: HTMLElement,
441
+ role: ByRoleMatcher,
442
+ options?: ByRoleOptions,
443
+ waitForElementOptions?: waitForOptions,
444
+ ) => Promise<T[]>
445
+
446
+ declare function getByLabelText$1<T extends HTMLElement = HTMLElement>(
447
+ ...args: Parameters<GetByText<T>>
448
+ ): ReturnType<GetByText<T>>
449
+ declare function getAllByLabelText$1<T extends HTMLElement = HTMLElement>(
450
+ ...args: Parameters<AllByText<T>>
451
+ ): ReturnType<AllByText<T>>
452
+ declare function queryByLabelText$1<T extends HTMLElement = HTMLElement>(
453
+ ...args: Parameters<QueryByText<T>>
454
+ ): ReturnType<QueryByText<T>>
455
+ declare function queryAllByLabelText$1<T extends HTMLElement = HTMLElement>(
456
+ ...args: Parameters<AllByText<T>>
457
+ ): ReturnType<AllByText<T>>
458
+ declare function findByLabelText$1<T extends HTMLElement = HTMLElement>(
459
+ ...args: Parameters<FindByText<T>>
460
+ ): ReturnType<FindByText<T>>
461
+ declare function findAllByLabelText$1<T extends HTMLElement = HTMLElement>(
462
+ ...args: Parameters<FindAllByText<T>>
463
+ ): ReturnType<FindAllByText<T>>
464
+ declare function getByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
465
+ ...args: Parameters<GetByBoundAttribute<T>>
466
+ ): ReturnType<GetByBoundAttribute<T>>
467
+ declare function getAllByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
468
+ ...args: Parameters<AllByBoundAttribute<T>>
469
+ ): ReturnType<AllByBoundAttribute<T>>
470
+ declare function queryByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
471
+ ...args: Parameters<QueryByBoundAttribute<T>>
472
+ ): ReturnType<QueryByBoundAttribute<T>>
473
+ declare function queryAllByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
474
+ ...args: Parameters<AllByBoundAttribute<T>>
475
+ ): ReturnType<AllByBoundAttribute<T>>
476
+ declare function findByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
477
+ ...args: Parameters<FindByBoundAttribute<T>>
478
+ ): ReturnType<FindByBoundAttribute<T>>
479
+ declare function findAllByPlaceholderText$1<T extends HTMLElement = HTMLElement>(
480
+ ...args: Parameters<FindAllByBoundAttribute<T>>
481
+ ): ReturnType<FindAllByBoundAttribute<T>>
482
+ declare function getByText$1<T extends HTMLElement = HTMLElement>(
483
+ ...args: Parameters<GetByText<T>>
484
+ ): ReturnType<GetByText<T>>
485
+ declare function getAllByText$1<T extends HTMLElement = HTMLElement>(
486
+ ...args: Parameters<AllByText<T>>
487
+ ): ReturnType<AllByText<T>>
488
+ declare function queryByText$1<T extends HTMLElement = HTMLElement>(
489
+ ...args: Parameters<QueryByText<T>>
490
+ ): ReturnType<QueryByText<T>>
491
+ declare function queryAllByText$1<T extends HTMLElement = HTMLElement>(
492
+ ...args: Parameters<AllByText<T>>
493
+ ): ReturnType<AllByText<T>>
494
+ declare function findByText$1<T extends HTMLElement = HTMLElement>(
495
+ ...args: Parameters<FindByText<T>>
496
+ ): ReturnType<FindByText<T>>
497
+ declare function findAllByText$1<T extends HTMLElement = HTMLElement>(
498
+ ...args: Parameters<FindAllByText<T>>
499
+ ): ReturnType<FindAllByText<T>>
500
+ declare function getByAltText$1<T extends HTMLElement = HTMLElement>(
501
+ ...args: Parameters<GetByBoundAttribute<T>>
502
+ ): ReturnType<GetByBoundAttribute<T>>
503
+ declare function getAllByAltText$1<T extends HTMLElement = HTMLElement>(
504
+ ...args: Parameters<AllByBoundAttribute<T>>
505
+ ): ReturnType<AllByBoundAttribute<T>>
506
+ declare function queryByAltText$1<T extends HTMLElement = HTMLElement>(
507
+ ...args: Parameters<QueryByBoundAttribute<T>>
508
+ ): ReturnType<QueryByBoundAttribute<T>>
509
+ declare function queryAllByAltText$1<T extends HTMLElement = HTMLElement>(
510
+ ...args: Parameters<AllByBoundAttribute<T>>
511
+ ): ReturnType<AllByBoundAttribute<T>>
512
+ declare function findByAltText$1<T extends HTMLElement = HTMLElement>(
513
+ ...args: Parameters<FindByBoundAttribute<T>>
514
+ ): ReturnType<FindByBoundAttribute<T>>
515
+ declare function findAllByAltText$1<T extends HTMLElement = HTMLElement>(
516
+ ...args: Parameters<FindAllByBoundAttribute<T>>
517
+ ): ReturnType<FindAllByBoundAttribute<T>>
518
+ declare function getByTitle$1<T extends HTMLElement = HTMLElement>(
519
+ ...args: Parameters<GetByBoundAttribute<T>>
520
+ ): ReturnType<GetByBoundAttribute<T>>
521
+ declare function getAllByTitle$1<T extends HTMLElement = HTMLElement>(
522
+ ...args: Parameters<AllByBoundAttribute<T>>
523
+ ): ReturnType<AllByBoundAttribute<T>>
524
+ declare function queryByTitle$1<T extends HTMLElement = HTMLElement>(
525
+ ...args: Parameters<QueryByBoundAttribute<T>>
526
+ ): ReturnType<QueryByBoundAttribute<T>>
527
+ declare function queryAllByTitle$1<T extends HTMLElement = HTMLElement>(
528
+ ...args: Parameters<AllByBoundAttribute<T>>
529
+ ): ReturnType<AllByBoundAttribute<T>>
530
+ declare function findByTitle$1<T extends HTMLElement = HTMLElement>(
531
+ ...args: Parameters<FindByBoundAttribute<T>>
532
+ ): ReturnType<FindByBoundAttribute<T>>
533
+ declare function findAllByTitle$1<T extends HTMLElement = HTMLElement>(
534
+ ...args: Parameters<FindAllByBoundAttribute<T>>
535
+ ): ReturnType<FindAllByBoundAttribute<T>>
536
+ declare function getByDisplayValue$1<T extends HTMLElement = HTMLElement>(
537
+ ...args: Parameters<GetByBoundAttribute<T>>
538
+ ): ReturnType<GetByBoundAttribute<T>>
539
+ declare function getAllByDisplayValue$1<T extends HTMLElement = HTMLElement>(
540
+ ...args: Parameters<AllByBoundAttribute<T>>
541
+ ): ReturnType<AllByBoundAttribute<T>>
542
+ declare function queryByDisplayValue$1<T extends HTMLElement = HTMLElement>(
543
+ ...args: Parameters<QueryByBoundAttribute<T>>
544
+ ): ReturnType<QueryByBoundAttribute<T>>
545
+ declare function queryAllByDisplayValue$1<T extends HTMLElement = HTMLElement>(
546
+ ...args: Parameters<AllByBoundAttribute<T>>
547
+ ): ReturnType<AllByBoundAttribute<T>>
548
+ declare function findByDisplayValue$1<T extends HTMLElement = HTMLElement>(
549
+ ...args: Parameters<FindByBoundAttribute<T>>
550
+ ): ReturnType<FindByBoundAttribute<T>>
551
+ declare function findAllByDisplayValue$1<T extends HTMLElement = HTMLElement>(
552
+ ...args: Parameters<FindAllByBoundAttribute<T>>
553
+ ): ReturnType<FindAllByBoundAttribute<T>>
554
+ declare function getByRole$1<T extends HTMLElement = HTMLElement>(
555
+ ...args: Parameters<GetByRole<T>>
556
+ ): ReturnType<GetByRole<T>>
557
+ declare function getAllByRole$1<T extends HTMLElement = HTMLElement>(
558
+ ...args: Parameters<AllByRole<T>>
559
+ ): ReturnType<AllByRole<T>>
560
+ declare function queryByRole$1<T extends HTMLElement = HTMLElement>(
561
+ ...args: Parameters<QueryByRole<T>>
562
+ ): ReturnType<QueryByRole<T>>
563
+ declare function queryAllByRole$1<T extends HTMLElement = HTMLElement>(
564
+ ...args: Parameters<AllByRole<T>>
565
+ ): ReturnType<AllByRole<T>>
566
+ declare function findByRole$1<T extends HTMLElement = HTMLElement>(
567
+ ...args: Parameters<FindByRole<T>>
568
+ ): ReturnType<FindByRole<T>>
569
+ declare function findAllByRole$1<T extends HTMLElement = HTMLElement>(
570
+ ...args: Parameters<FindAllByRole<T>>
571
+ ): ReturnType<FindAllByRole<T>>
572
+ declare function getByTestId$1<T extends HTMLElement = HTMLElement>(
573
+ ...args: Parameters<GetByBoundAttribute<T>>
574
+ ): ReturnType<GetByBoundAttribute<T>>
575
+ declare function getAllByTestId$1<T extends HTMLElement = HTMLElement>(
576
+ ...args: Parameters<AllByBoundAttribute<T>>
577
+ ): ReturnType<AllByBoundAttribute<T>>
578
+ declare function queryByTestId$1<T extends HTMLElement = HTMLElement>(
579
+ ...args: Parameters<QueryByBoundAttribute<T>>
580
+ ): ReturnType<QueryByBoundAttribute<T>>
581
+ declare function queryAllByTestId$1<T extends HTMLElement = HTMLElement>(
582
+ ...args: Parameters<AllByBoundAttribute<T>>
583
+ ): ReturnType<AllByBoundAttribute<T>>
584
+ declare function findByTestId$1<T extends HTMLElement = HTMLElement>(
585
+ ...args: Parameters<FindByBoundAttribute<T>>
586
+ ): ReturnType<FindByBoundAttribute<T>>
587
+ declare function findAllByTestId$1<T extends HTMLElement = HTMLElement>(
588
+ ...args: Parameters<FindAllByBoundAttribute<T>>
589
+ ): ReturnType<FindAllByBoundAttribute<T>>
590
+
591
+ type queries$1_AllByBoundAttribute<T extends HTMLElement = HTMLElement> = AllByBoundAttribute<T>;
592
+ type queries$1_AllByRole<T extends HTMLElement = HTMLElement> = AllByRole<T>;
593
+ type queries$1_AllByText<T extends HTMLElement = HTMLElement> = AllByText<T>;
594
+ type queries$1_ByRoleOptions = ByRoleOptions;
595
+ type queries$1_FindAllByBoundAttribute<T extends HTMLElement = HTMLElement> = FindAllByBoundAttribute<T>;
596
+ type queries$1_FindAllByRole<T extends HTMLElement = HTMLElement> = FindAllByRole<T>;
597
+ type queries$1_FindAllByText<T extends HTMLElement = HTMLElement> = FindAllByText<T>;
598
+ type queries$1_FindByBoundAttribute<T extends HTMLElement = HTMLElement> = FindByBoundAttribute<T>;
599
+ type queries$1_FindByRole<T extends HTMLElement = HTMLElement> = FindByRole<T>;
600
+ type queries$1_FindByText<T extends HTMLElement = HTMLElement> = FindByText<T>;
601
+ type queries$1_GetByBoundAttribute<T extends HTMLElement = HTMLElement> = GetByBoundAttribute<T>;
602
+ type queries$1_GetByRole<T extends HTMLElement = HTMLElement> = GetByRole<T>;
603
+ type queries$1_GetByText<T extends HTMLElement = HTMLElement> = GetByText<T>;
604
+ type queries$1_QueryByBoundAttribute<T extends HTMLElement = HTMLElement> = QueryByBoundAttribute<T>;
605
+ type queries$1_QueryByRole<T extends HTMLElement = HTMLElement> = QueryByRole<T>;
606
+ type queries$1_QueryByText<T extends HTMLElement = HTMLElement> = QueryByText<T>;
607
+ declare namespace queries$1 {
608
+ export { type queries$1_AllByBoundAttribute as AllByBoundAttribute, type queries$1_AllByRole as AllByRole, type queries$1_AllByText as AllByText, type queries$1_ByRoleOptions as ByRoleOptions, type queries$1_FindAllByBoundAttribute as FindAllByBoundAttribute, type queries$1_FindAllByRole as FindAllByRole, type queries$1_FindAllByText as FindAllByText, type queries$1_FindByBoundAttribute as FindByBoundAttribute, type queries$1_FindByRole as FindByRole, type queries$1_FindByText as FindByText, type queries$1_GetByBoundAttribute as GetByBoundAttribute, type queries$1_GetByRole as GetByRole, type queries$1_GetByText as GetByText, type queries$1_QueryByBoundAttribute as QueryByBoundAttribute, type queries$1_QueryByRole as QueryByRole, type queries$1_QueryByText as QueryByText, findAllByAltText$1 as findAllByAltText, findAllByDisplayValue$1 as findAllByDisplayValue, findAllByLabelText$1 as findAllByLabelText, findAllByPlaceholderText$1 as findAllByPlaceholderText, findAllByRole$1 as findAllByRole, findAllByTestId$1 as findAllByTestId, findAllByText$1 as findAllByText, findAllByTitle$1 as findAllByTitle, findByAltText$1 as findByAltText, findByDisplayValue$1 as findByDisplayValue, findByLabelText$1 as findByLabelText, findByPlaceholderText$1 as findByPlaceholderText, findByRole$1 as findByRole, findByTestId$1 as findByTestId, findByText$1 as findByText, findByTitle$1 as findByTitle, getAllByAltText$1 as getAllByAltText, getAllByDisplayValue$1 as getAllByDisplayValue, getAllByLabelText$1 as getAllByLabelText, getAllByPlaceholderText$1 as getAllByPlaceholderText, getAllByRole$1 as getAllByRole, getAllByTestId$1 as getAllByTestId, getAllByText$1 as getAllByText, getAllByTitle$1 as getAllByTitle, getByAltText$1 as getByAltText, getByDisplayValue$1 as getByDisplayValue, getByLabelText$1 as getByLabelText, getByPlaceholderText$1 as getByPlaceholderText, getByRole$1 as getByRole, getByTestId$1 as getByTestId, getByText$1 as getByText, getByTitle$1 as getByTitle, queryAllByAltText$1 as queryAllByAltText, queryAllByDisplayValue$1 as queryAllByDisplayValue, queryAllByLabelText$1 as queryAllByLabelText, queryAllByPlaceholderText$1 as queryAllByPlaceholderText, queryAllByRole$1 as queryAllByRole, queryAllByTestId$1 as queryAllByTestId, queryAllByText$1 as queryAllByText, queryAllByTitle$1 as queryAllByTitle, queryByAltText$1 as queryByAltText, queryByDisplayValue$1 as queryByDisplayValue, queryByLabelText$1 as queryByLabelText, queryByPlaceholderText$1 as queryByPlaceholderText, queryByRole$1 as queryByRole, queryByTestId$1 as queryByTestId, queryByText$1 as queryByText, queryByTitle$1 as queryByTitle };
609
+ }
610
+
611
+ type BoundFunction<T> = T extends (
612
+ container: HTMLElement,
613
+ ...args: infer P
614
+ ) => infer R
615
+ ? (...args: P) => R
616
+ : never
617
+
618
+ type BoundFunctions<Q> = Q extends typeof queries$1
619
+ ? {
620
+ getByLabelText<T extends HTMLElement = HTMLElement>(
621
+ ...args: Parameters<BoundFunction<GetByText<T>>>
622
+ ): ReturnType<GetByText<T>>
623
+ getAllByLabelText<T extends HTMLElement = HTMLElement>(
624
+ ...args: Parameters<BoundFunction<AllByText<T>>>
625
+ ): ReturnType<AllByText<T>>
626
+ queryByLabelText<T extends HTMLElement = HTMLElement>(
627
+ ...args: Parameters<BoundFunction<QueryByText<T>>>
628
+ ): ReturnType<QueryByText<T>>
629
+ queryAllByLabelText<T extends HTMLElement = HTMLElement>(
630
+ ...args: Parameters<BoundFunction<AllByText<T>>>
631
+ ): ReturnType<AllByText<T>>
632
+ findByLabelText<T extends HTMLElement = HTMLElement>(
633
+ ...args: Parameters<BoundFunction<FindByText<T>>>
634
+ ): ReturnType<FindByText<T>>
635
+ findAllByLabelText<T extends HTMLElement = HTMLElement>(
636
+ ...args: Parameters<BoundFunction<FindAllByText<T>>>
637
+ ): ReturnType<FindAllByText<T>>
638
+ getByPlaceholderText<T extends HTMLElement = HTMLElement>(
639
+ ...args: Parameters<BoundFunction<GetByBoundAttribute<T>>>
640
+ ): ReturnType<GetByBoundAttribute<T>>
641
+ getAllByPlaceholderText<T extends HTMLElement = HTMLElement>(
642
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
643
+ ): ReturnType<AllByBoundAttribute<T>>
644
+ queryByPlaceholderText<T extends HTMLElement = HTMLElement>(
645
+ ...args: Parameters<BoundFunction<QueryByBoundAttribute<T>>>
646
+ ): ReturnType<QueryByBoundAttribute<T>>
647
+ queryAllByPlaceholderText<T extends HTMLElement = HTMLElement>(
648
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
649
+ ): ReturnType<AllByBoundAttribute<T>>
650
+ findByPlaceholderText<T extends HTMLElement = HTMLElement>(
651
+ ...args: Parameters<BoundFunction<FindByBoundAttribute<T>>>
652
+ ): ReturnType<FindByBoundAttribute<T>>
653
+ findAllByPlaceholderText<T extends HTMLElement = HTMLElement>(
654
+ ...args: Parameters<BoundFunction<FindAllByBoundAttribute<T>>>
655
+ ): ReturnType<FindAllByBoundAttribute<T>>
656
+ getByText<T extends HTMLElement = HTMLElement>(
657
+ ...args: Parameters<BoundFunction<GetByText<T>>>
658
+ ): ReturnType<GetByText<T>>
659
+ getAllByText<T extends HTMLElement = HTMLElement>(
660
+ ...args: Parameters<BoundFunction<AllByText<T>>>
661
+ ): ReturnType<AllByText<T>>
662
+ queryByText<T extends HTMLElement = HTMLElement>(
663
+ ...args: Parameters<BoundFunction<QueryByText<T>>>
664
+ ): ReturnType<QueryByText<T>>
665
+ queryAllByText<T extends HTMLElement = HTMLElement>(
666
+ ...args: Parameters<BoundFunction<AllByText<T>>>
667
+ ): ReturnType<AllByText<T>>
668
+ findByText<T extends HTMLElement = HTMLElement>(
669
+ ...args: Parameters<BoundFunction<FindByText<T>>>
670
+ ): ReturnType<FindByText<T>>
671
+ findAllByText<T extends HTMLElement = HTMLElement>(
672
+ ...args: Parameters<BoundFunction<FindAllByText<T>>>
673
+ ): ReturnType<FindAllByText<T>>
674
+ getByAltText<T extends HTMLElement = HTMLElement>(
675
+ ...args: Parameters<BoundFunction<GetByBoundAttribute<T>>>
676
+ ): ReturnType<GetByBoundAttribute<T>>
677
+ getAllByAltText<T extends HTMLElement = HTMLElement>(
678
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
679
+ ): ReturnType<AllByBoundAttribute<T>>
680
+ queryByAltText<T extends HTMLElement = HTMLElement>(
681
+ ...args: Parameters<BoundFunction<QueryByBoundAttribute<T>>>
682
+ ): ReturnType<QueryByBoundAttribute<T>>
683
+ queryAllByAltText<T extends HTMLElement = HTMLElement>(
684
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
685
+ ): ReturnType<AllByBoundAttribute<T>>
686
+ findByAltText<T extends HTMLElement = HTMLElement>(
687
+ ...args: Parameters<BoundFunction<FindByBoundAttribute<T>>>
688
+ ): ReturnType<FindByBoundAttribute<T>>
689
+ findAllByAltText<T extends HTMLElement = HTMLElement>(
690
+ ...args: Parameters<BoundFunction<FindAllByBoundAttribute<T>>>
691
+ ): ReturnType<FindAllByBoundAttribute<T>>
692
+ getByTitle<T extends HTMLElement = HTMLElement>(
693
+ ...args: Parameters<BoundFunction<GetByBoundAttribute<T>>>
694
+ ): ReturnType<GetByBoundAttribute<T>>
695
+ getAllByTitle<T extends HTMLElement = HTMLElement>(
696
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
697
+ ): ReturnType<AllByBoundAttribute<T>>
698
+ queryByTitle<T extends HTMLElement = HTMLElement>(
699
+ ...args: Parameters<BoundFunction<QueryByBoundAttribute<T>>>
700
+ ): ReturnType<QueryByBoundAttribute<T>>
701
+ queryAllByTitle<T extends HTMLElement = HTMLElement>(
702
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
703
+ ): ReturnType<AllByBoundAttribute<T>>
704
+ findByTitle<T extends HTMLElement = HTMLElement>(
705
+ ...args: Parameters<BoundFunction<FindByBoundAttribute<T>>>
706
+ ): ReturnType<FindByBoundAttribute<T>>
707
+ findAllByTitle<T extends HTMLElement = HTMLElement>(
708
+ ...args: Parameters<BoundFunction<FindAllByBoundAttribute<T>>>
709
+ ): ReturnType<FindAllByBoundAttribute<T>>
710
+ getByDisplayValue<T extends HTMLElement = HTMLElement>(
711
+ ...args: Parameters<BoundFunction<GetByBoundAttribute<T>>>
712
+ ): ReturnType<GetByBoundAttribute<T>>
713
+ getAllByDisplayValue<T extends HTMLElement = HTMLElement>(
714
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
715
+ ): ReturnType<AllByBoundAttribute<T>>
716
+ queryByDisplayValue<T extends HTMLElement = HTMLElement>(
717
+ ...args: Parameters<BoundFunction<QueryByBoundAttribute<T>>>
718
+ ): ReturnType<QueryByBoundAttribute<T>>
719
+ queryAllByDisplayValue<T extends HTMLElement = HTMLElement>(
720
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
721
+ ): ReturnType<AllByBoundAttribute<T>>
722
+ findByDisplayValue<T extends HTMLElement = HTMLElement>(
723
+ ...args: Parameters<BoundFunction<FindByBoundAttribute<T>>>
724
+ ): ReturnType<FindByBoundAttribute<T>>
725
+ findAllByDisplayValue<T extends HTMLElement = HTMLElement>(
726
+ ...args: Parameters<BoundFunction<FindAllByBoundAttribute<T>>>
727
+ ): ReturnType<FindAllByBoundAttribute<T>>
728
+ getByRole<T extends HTMLElement = HTMLElement>(
729
+ ...args: Parameters<BoundFunction<GetByRole<T>>>
730
+ ): ReturnType<GetByRole<T>>
731
+ getAllByRole<T extends HTMLElement = HTMLElement>(
732
+ ...args: Parameters<BoundFunction<AllByRole<T>>>
733
+ ): ReturnType<AllByRole<T>>
734
+ queryByRole<T extends HTMLElement = HTMLElement>(
735
+ ...args: Parameters<BoundFunction<QueryByRole<T>>>
736
+ ): ReturnType<QueryByRole<T>>
737
+ queryAllByRole<T extends HTMLElement = HTMLElement>(
738
+ ...args: Parameters<BoundFunction<AllByRole<T>>>
739
+ ): ReturnType<AllByRole<T>>
740
+ findByRole<T extends HTMLElement = HTMLElement>(
741
+ ...args: Parameters<BoundFunction<FindByRole<T>>>
742
+ ): ReturnType<FindByRole<T>>
743
+ findAllByRole<T extends HTMLElement = HTMLElement>(
744
+ ...args: Parameters<BoundFunction<FindAllByRole<T>>>
745
+ ): ReturnType<FindAllByRole<T>>
746
+ getByTestId<T extends HTMLElement = HTMLElement>(
747
+ ...args: Parameters<BoundFunction<GetByBoundAttribute<T>>>
748
+ ): ReturnType<GetByBoundAttribute<T>>
749
+ getAllByTestId<T extends HTMLElement = HTMLElement>(
750
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
751
+ ): ReturnType<AllByBoundAttribute<T>>
752
+ queryByTestId<T extends HTMLElement = HTMLElement>(
753
+ ...args: Parameters<BoundFunction<QueryByBoundAttribute<T>>>
754
+ ): ReturnType<QueryByBoundAttribute<T>>
755
+ queryAllByTestId<T extends HTMLElement = HTMLElement>(
756
+ ...args: Parameters<BoundFunction<AllByBoundAttribute<T>>>
757
+ ): ReturnType<AllByBoundAttribute<T>>
758
+ findByTestId<T extends HTMLElement = HTMLElement>(
759
+ ...args: Parameters<BoundFunction<FindByBoundAttribute<T>>>
760
+ ): ReturnType<FindByBoundAttribute<T>>
761
+ findAllByTestId<T extends HTMLElement = HTMLElement>(
762
+ ...args: Parameters<BoundFunction<FindAllByBoundAttribute<T>>>
763
+ ): ReturnType<FindAllByBoundAttribute<T>>
764
+ } & {
765
+ [P in keyof Q]: BoundFunction<Q[P]>
766
+ }
767
+ : {
768
+ [P in keyof Q]: BoundFunction<Q[P]>
769
+ }
770
+
771
+ type Query = (
772
+ container: HTMLElement,
773
+ ...args: any[]
774
+ ) =>
775
+ | Error
776
+ | HTMLElement
777
+ | HTMLElement[]
778
+ | Promise<HTMLElement[]>
779
+ | Promise<HTMLElement>
780
+ | null
781
+
782
+ interface Queries$1 {
783
+ [T: string]: Query
784
+ }
785
+
786
+ declare function getQueriesForElement$1<
787
+ QueriesToBind extends Queries$1 = typeof queries$1,
788
+ // Extra type parameter required for reassignment.
789
+ T extends QueriesToBind = QueriesToBind,
790
+ >(element: HTMLElement, queriesToBind?: T): BoundFunctions<T>
791
+
792
+ /**
793
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
794
+ *
795
+ * This source code is licensed under the MIT license found in the
796
+ * LICENSE file in the root directory of this source tree.
797
+ */
798
+ declare type Colors = {
799
+ comment: {
800
+ close: string;
801
+ open: string;
802
+ };
803
+ content: {
804
+ close: string;
805
+ open: string;
806
+ };
807
+ prop: {
808
+ close: string;
809
+ open: string;
810
+ };
811
+ tag: {
812
+ close: string;
813
+ open: string;
814
+ };
815
+ value: {
816
+ close: string;
817
+ open: string;
818
+ };
819
+ };
820
+ declare type Indent = (arg0: string) => string;
821
+ declare type Refs = Array<unknown>;
822
+ declare type Print = (arg0: unknown) => string;
823
+ declare type Theme = {
824
+ comment: string;
825
+ content: string;
826
+ prop: string;
827
+ tag: string;
828
+ value: string;
829
+ };
830
+ declare type ThemeReceived = {
831
+ comment?: string;
832
+ content?: string;
833
+ prop?: string;
834
+ tag?: string;
835
+ value?: string;
836
+ };
837
+ declare type CompareKeys = ((a: string, b: string) => number) | undefined;
838
+ declare type Options = {
839
+ callToJSON: boolean;
840
+ compareKeys: CompareKeys;
841
+ escapeRegex: boolean;
842
+ escapeString: boolean;
843
+ highlight: boolean;
844
+ indent: number;
845
+ maxDepth: number;
846
+ min: boolean;
847
+ plugins: Plugins;
848
+ printBasicPrototype: boolean;
849
+ printFunctionName: boolean;
850
+ theme: Theme;
851
+ };
852
+ interface PrettyFormatOptions {
853
+ callToJSON?: boolean;
854
+ compareKeys?: CompareKeys;
855
+ escapeRegex?: boolean;
856
+ escapeString?: boolean;
857
+ highlight?: boolean;
858
+ indent?: number;
859
+ maxDepth?: number;
860
+ min?: boolean;
861
+ plugins?: Plugins;
862
+ printBasicPrototype?: boolean;
863
+ printFunctionName?: boolean;
864
+ theme?: ThemeReceived;
865
+ }
866
+ declare type OptionsReceived = PrettyFormatOptions;
867
+ declare type Config$1 = {
868
+ callToJSON: boolean;
869
+ compareKeys: CompareKeys;
870
+ colors: Colors;
871
+ escapeRegex: boolean;
872
+ escapeString: boolean;
873
+ indent: string;
874
+ maxDepth: number;
875
+ min: boolean;
876
+ plugins: Plugins;
877
+ printBasicPrototype: boolean;
878
+ printFunctionName: boolean;
879
+ spacingInner: string;
880
+ spacingOuter: string;
881
+ };
882
+ declare type Printer = (val: unknown, config: Config$1, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string;
883
+ declare type Test = (arg0: any) => boolean;
884
+ declare type NewPlugin = {
885
+ serialize: (val: any, config: Config$1, indentation: string, depth: number, refs: Refs, printer: Printer) => string;
886
+ test: Test;
887
+ };
888
+ declare type PluginOptions = {
889
+ edgeSpacing: string;
890
+ min: boolean;
891
+ spacing: string;
892
+ };
893
+ declare type OldPlugin = {
894
+ print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string;
895
+ test: Test;
896
+ };
897
+ declare type Plugin = NewPlugin | OldPlugin;
898
+ declare type Plugins = Array<Plugin>;
899
+
900
+ /**
901
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
902
+ *
903
+ * This source code is licensed under the MIT license found in the
904
+ * LICENSE file in the root directory of this source tree.
905
+ */
906
+
907
+ declare const DEFAULT_OPTIONS: Options;
908
+ /**
909
+ * Returns a presentation string of your `val` object
910
+ * @param val any potential JavaScript object
911
+ * @param options Custom settings
912
+ */
913
+ declare function format(val: unknown, options?: OptionsReceived): string;
914
+ declare const plugins: {
915
+ AsymmetricMatcher: NewPlugin;
916
+ ConvertAnsi: NewPlugin;
917
+ DOMCollection: NewPlugin;
918
+ DOMElement: NewPlugin;
919
+ Immutable: NewPlugin;
920
+ ReactElement: NewPlugin;
921
+ ReactTestComponent: NewPlugin;
922
+ };
923
+
924
+ type index_d_Colors = Colors;
925
+ type index_d_CompareKeys = CompareKeys;
926
+ declare const index_d_DEFAULT_OPTIONS: typeof DEFAULT_OPTIONS;
927
+ type index_d_NewPlugin = NewPlugin;
928
+ type index_d_OldPlugin = OldPlugin;
929
+ type index_d_Options = Options;
930
+ type index_d_OptionsReceived = OptionsReceived;
931
+ type index_d_Plugin = Plugin;
932
+ type index_d_Plugins = Plugins;
933
+ type index_d_PrettyFormatOptions = PrettyFormatOptions;
934
+ type index_d_Printer = Printer;
935
+ type index_d_Refs = Refs;
936
+ type index_d_Theme = Theme;
937
+ declare const index_d_format: typeof format;
938
+ declare const index_d_plugins: typeof plugins;
939
+ declare namespace index_d {
940
+ export { type index_d_Colors as Colors, type index_d_CompareKeys as CompareKeys, type Config$1 as Config, index_d_DEFAULT_OPTIONS as DEFAULT_OPTIONS, type index_d_NewPlugin as NewPlugin, type index_d_OldPlugin as OldPlugin, type index_d_Options as Options, type index_d_OptionsReceived as OptionsReceived, type index_d_Plugin as Plugin, type index_d_Plugins as Plugins, type index_d_PrettyFormatOptions as PrettyFormatOptions, type index_d_Printer as Printer, type index_d_Refs as Refs, type index_d_Theme as Theme, format as default, index_d_format as format, index_d_plugins as plugins };
941
+ }
942
+
943
+ type Screen<Q extends Queries$1 = typeof queries$1> = BoundFunctions<Q> & {
944
+ /**
945
+ * Convenience function for `pretty-dom` which also allows an array
946
+ * of elements
947
+ */
948
+ debug: (
949
+ element?: Array<Element | HTMLDocument> | Element | HTMLDocument,
950
+ maxLength?: number,
951
+ options?: OptionsReceived,
952
+ ) => void
953
+ /**
954
+ * Convenience function for `Testing Playground` which logs and returns the URL that
955
+ * can be opened in a browser
956
+ */
957
+ logTestingPlaygroundURL: (element?: Element | HTMLDocument) => string
958
+ }
959
+
960
+ declare function waitForElementToBeRemoved$1<T>(
961
+ callback: T | (() => T),
962
+ options?: waitForOptions,
963
+ ): Promise<void>
964
+
965
+ declare function getNodeText$1(node: HTMLElement): string
966
+
967
+ type EventType =
968
+ | 'copy'
969
+ | 'cut'
970
+ | 'paste'
971
+ | 'compositionEnd'
972
+ | 'compositionStart'
973
+ | 'compositionUpdate'
974
+ | 'keyDown'
975
+ | 'keyPress'
976
+ | 'keyUp'
977
+ | 'focus'
978
+ | 'blur'
979
+ | 'focusIn'
980
+ | 'focusOut'
981
+ | 'change'
982
+ | 'input'
983
+ | 'invalid'
984
+ | 'submit'
985
+ | 'reset'
986
+ | 'click'
987
+ | 'contextMenu'
988
+ | 'dblClick'
989
+ | 'drag'
990
+ | 'dragEnd'
991
+ | 'dragEnter'
992
+ | 'dragExit'
993
+ | 'dragLeave'
994
+ | 'dragOver'
995
+ | 'dragStart'
996
+ | 'drop'
997
+ | 'mouseDown'
998
+ | 'mouseEnter'
999
+ | 'mouseLeave'
1000
+ | 'mouseMove'
1001
+ | 'mouseOut'
1002
+ | 'mouseOver'
1003
+ | 'mouseUp'
1004
+ | 'popState'
1005
+ | 'select'
1006
+ | 'touchCancel'
1007
+ | 'touchEnd'
1008
+ | 'touchMove'
1009
+ | 'touchStart'
1010
+ | 'resize'
1011
+ | 'scroll'
1012
+ | 'wheel'
1013
+ | 'abort'
1014
+ | 'canPlay'
1015
+ | 'canPlayThrough'
1016
+ | 'durationChange'
1017
+ | 'emptied'
1018
+ | 'encrypted'
1019
+ | 'ended'
1020
+ | 'loadedData'
1021
+ | 'loadedMetadata'
1022
+ | 'loadStart'
1023
+ | 'pause'
1024
+ | 'play'
1025
+ | 'playing'
1026
+ | 'progress'
1027
+ | 'rateChange'
1028
+ | 'seeked'
1029
+ | 'seeking'
1030
+ | 'stalled'
1031
+ | 'suspend'
1032
+ | 'timeUpdate'
1033
+ | 'volumeChange'
1034
+ | 'waiting'
1035
+ | 'load'
1036
+ | 'error'
1037
+ | 'animationStart'
1038
+ | 'animationEnd'
1039
+ | 'animationIteration'
1040
+ | 'transitionCancel'
1041
+ | 'transitionEnd'
1042
+ | 'transitionRun'
1043
+ | 'transitionStart'
1044
+ | 'doubleClick'
1045
+ | 'pointerOver'
1046
+ | 'pointerEnter'
1047
+ | 'pointerDown'
1048
+ | 'pointerMove'
1049
+ | 'pointerUp'
1050
+ | 'pointerCancel'
1051
+ | 'pointerOut'
1052
+ | 'pointerLeave'
1053
+ | 'gotPointerCapture'
1054
+ | 'lostPointerCapture'
1055
+ | 'offline'
1056
+ | 'online'
1057
+ | 'pageHide'
1058
+ | 'pageShow'
1059
+ type FireObject = {
1060
+ [K in EventType]: (
1061
+ element: Document | Element | Window | Node,
1062
+ options?: {},
1063
+ ) => boolean
1064
+ }
1065
+ type CreateFunction = (
1066
+ eventName: string,
1067
+ node: Document | Element | Window | Node,
1068
+ init?: {},
1069
+ options?: {EventType?: string; defaultInit?: {}},
1070
+ ) => Event
1071
+ type CreateObject = {
1072
+ [K in EventType]: (
1073
+ element: Document | Element | Window | Node,
1074
+ options?: {},
1075
+ ) => Event
1076
+ }
1077
+
1078
+ interface PrettyDOMOptions extends OptionsReceived {
1079
+ /**
1080
+ * Given a `Node` return `false` if you wish to ignore that node in the output.
1081
+ * By default, ignores `<style />`, `<script />` and comment nodes.
1082
+ */
1083
+ filterNode?: (node: Node) => boolean
1084
+ }
1085
+
1086
+ declare function prettyDOM$1(
1087
+ dom?: Element | HTMLDocument,
1088
+ maxLength?: number,
1089
+ options?: PrettyDOMOptions,
1090
+ ): string | false
1091
+ declare function logDOM$1(
1092
+ dom?: Element | HTMLDocument,
1093
+ maxLength?: number,
1094
+ options?: PrettyDOMOptions,
1095
+ ): void
1096
+
1097
+ declare function logRoles$1(
1098
+ container: HTMLElement,
1099
+ options?: LogRolesOptions,
1100
+ ): string
1101
+
1102
+ interface LogRolesOptions {
1103
+ hidden?: boolean
1104
+ }
1105
+
1106
+ declare function getRoles$1(container: HTMLElement): {
1107
+ [index: string]: HTMLElement[]
1108
+ }
1109
+
1110
+ /**
1111
+ * https://testing-library.com/docs/dom-testing-library/api-helpers#isinaccessible
1112
+ */
1113
+ declare function isInaccessible$1(element: Element): boolean
1114
+
1115
+ interface Config {
1116
+ testIdAttribute: string
1117
+ /**
1118
+ * WARNING: `unstable` prefix means this API may change in patch and minor releases.
1119
+ * @param cb
1120
+ */
1121
+ unstable_advanceTimersWrapper(cb: (...args: unknown[]) => unknown): unknown
1122
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1123
+ asyncWrapper(cb: (...args: any[]) => any): Promise<any>
1124
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1125
+ eventWrapper(cb: (...args: any[]) => any): void
1126
+ asyncUtilTimeout: number
1127
+ computedStyleSupportsPseudoElements: boolean
1128
+ defaultHidden: boolean
1129
+ /** default value for the `ignore` option in `ByText` queries */
1130
+ defaultIgnore: string
1131
+ showOriginalStackTrace: boolean
1132
+ throwSuggestions: boolean
1133
+ getElementError: (message: string | null, container: Element) => Error
1134
+ }
1135
+
1136
+ interface ConfigFn {
1137
+ (existingConfig: Config): Partial<Config>
1138
+ }
1139
+
1140
+ declare function configure$1(configDelta: ConfigFn | Partial<Config>): void
1141
+ declare function getConfig$1(): Config
1142
+
1143
+ interface QueryOptions {
1144
+ [key: string]: RegExp | boolean
1145
+ }
1146
+
1147
+ type QueryArgs = [string, QueryOptions?]
1148
+
1149
+ interface Suggestion {
1150
+ queryName: string
1151
+ queryMethod: string
1152
+ queryArgs: QueryArgs
1153
+ variant: string
1154
+ warning?: string
1155
+ toString(): string
1156
+ }
1157
+
1158
+ type Variant =
1159
+ | 'find'
1160
+ | 'findAll'
1161
+ | 'get'
1162
+ | 'getAll'
1163
+ | 'query'
1164
+ | 'queryAll'
1165
+
1166
+ type Method =
1167
+ | 'AltText'
1168
+ | 'alttext'
1169
+ | 'DisplayValue'
1170
+ | 'displayvalue'
1171
+ | 'LabelText'
1172
+ | 'labeltext'
1173
+ | 'PlaceholderText'
1174
+ | 'placeholdertext'
1175
+ | 'Role'
1176
+ | 'role'
1177
+ | 'TestId'
1178
+ | 'testid'
1179
+ | 'Text'
1180
+ | 'text'
1181
+ | 'Title'
1182
+ | 'title'
1183
+
1184
+ declare function getSuggestedQuery$1(
1185
+ element: HTMLElement,
1186
+ variant?: Variant,
1187
+ method?: Method,
1188
+ ): Suggestion | undefined
1189
+
1190
+ declare const buildQueries: typeof buildQueries$1;
1191
+ declare const configure: typeof configure$1;
1192
+ declare const createEvent: CreateObject & CreateFunction;
1193
+ declare const fireEvent: (<T>(element: Element | Node | Document | Window, event: Event) => Promise<false> | Promise<true>) & PromisifyObject<FireObject>;
1194
+ declare const findAllByAltText: typeof findAllByAltText$1;
1195
+ declare const findAllByDisplayValue: typeof findAllByDisplayValue$1;
1196
+ declare const findAllByLabelText: typeof findAllByLabelText$1;
1197
+ declare const findAllByPlaceholderText: typeof findAllByPlaceholderText$1;
1198
+ declare const findAllByRole: typeof findAllByRole$1;
1199
+ declare const findAllByTestId: typeof findAllByTestId$1;
1200
+ declare const findAllByText: typeof findAllByText$1;
1201
+ declare const findAllByTitle: typeof findAllByTitle$1;
1202
+ declare const findByAltText: typeof findByAltText$1;
1203
+ declare const findByDisplayValue: typeof findByDisplayValue$1;
1204
+ declare const findByLabelText: typeof findByLabelText$1;
1205
+ declare const findByPlaceholderText: typeof findByPlaceholderText$1;
1206
+ declare const findByRole: typeof findByRole$1;
1207
+ declare const findByTestId: typeof findByTestId$1;
1208
+ declare const findByText: typeof findByText$1;
1209
+ declare const findByTitle: typeof findByTitle$1;
1210
+ declare const getAllByAltText: typeof getAllByAltText$1;
1211
+ declare const getAllByDisplayValue: typeof getAllByDisplayValue$1;
1212
+ declare const getAllByLabelText: typeof getAllByLabelText$1;
1213
+ declare const getAllByPlaceholderText: typeof getAllByPlaceholderText$1;
1214
+ declare const getAllByRole: typeof getAllByRole$1;
1215
+ declare const getAllByTestId: typeof getAllByTestId$1;
1216
+ declare const getAllByText: typeof getAllByText$1;
1217
+ declare const getAllByTitle: typeof getAllByTitle$1;
1218
+ declare const getByAltText: typeof getByAltText$1;
1219
+ declare const getByDisplayValue: typeof getByDisplayValue$1;
1220
+ declare const getByLabelText: typeof getByLabelText$1;
1221
+ declare const getByPlaceholderText: typeof getByPlaceholderText$1;
1222
+ declare const getByRole: typeof getByRole$1;
1223
+ declare const getByTestId: typeof getByTestId$1;
1224
+ declare const getByText: typeof getByText$1;
1225
+ declare const getByTitle: typeof getByTitle$1;
1226
+ declare const getConfig: typeof getConfig$1;
1227
+ declare const getDefaultNormalizer: typeof getDefaultNormalizer$1;
1228
+ declare const getElementError: typeof getElementError$1;
1229
+ declare const getNodeText: typeof getNodeText$1;
1230
+ declare const getQueriesForElement: typeof getQueriesForElement$1;
1231
+ declare const getRoles: typeof getRoles$1;
1232
+ declare const getSuggestedQuery: typeof getSuggestedQuery$1;
1233
+ declare const isInaccessible: typeof isInaccessible$1;
1234
+ declare const logDOM: typeof logDOM$1;
1235
+ declare const logRoles: typeof logRoles$1;
1236
+ declare const prettyDOM: typeof prettyDOM$1;
1237
+ declare const queries: typeof queries$1;
1238
+ declare const queryAllByAltText: typeof queryAllByAltText$1;
1239
+ declare const queryAllByAttribute: AllByAttribute;
1240
+ declare const queryAllByDisplayValue: typeof queryAllByDisplayValue$1;
1241
+ declare const queryAllByLabelText: typeof queryAllByLabelText$1;
1242
+ declare const queryAllByPlaceholderText: typeof queryAllByPlaceholderText$1;
1243
+ declare const queryAllByRole: typeof queryAllByRole$1;
1244
+ declare const queryAllByTestId: typeof queryAllByTestId$1;
1245
+ declare const queryAllByText: typeof queryAllByText$1;
1246
+ declare const queryAllByTitle: typeof queryAllByTitle$1;
1247
+ declare const queryByAltText: typeof queryByAltText$1;
1248
+ declare const queryByAttribute: QueryByAttribute;
1249
+ declare const queryByDisplayValue: typeof queryByDisplayValue$1;
1250
+ declare const queryByLabelText: typeof queryByLabelText$1;
1251
+ declare const queryByPlaceholderText: typeof queryByPlaceholderText$1;
1252
+ declare const queryByRole: typeof queryByRole$1;
1253
+ declare const queryByTestId: typeof queryByTestId$1;
1254
+ declare const queryByText: typeof queryByText$1;
1255
+ declare const queryByTitle: typeof queryByTitle$1;
1256
+ declare const queryHelpers: typeof queryHelpers_d;
1257
+ declare const screen: Screen<typeof queries$1>;
1258
+ declare const waitFor: typeof waitFor$1;
1259
+ declare const waitForElementToBeRemoved: typeof waitForElementToBeRemoved$1;
1260
+ declare const within: typeof getQueriesForElement$1;
1261
+ declare const prettyFormat: typeof index_d;
109
1262
  type _UserEvent = typeof _userEvent;
110
1263
  interface UserEvent extends _UserEvent {
111
1264
  }
112
- declare const userEvent: UserEvent;
1265
+ declare const uninstrumentedUserEvent: {
1266
+ readonly setup: typeof _testing_library_user_event_dist_cjs_setup_setup_js.setupMain;
1267
+ readonly clear: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.clear;
1268
+ readonly click: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.click;
1269
+ readonly copy: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.copy;
1270
+ readonly cut: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.cut;
1271
+ readonly dblClick: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.dblClick;
1272
+ readonly deselectOptions: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.deselectOptions;
1273
+ readonly hover: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.hover;
1274
+ readonly keyboard: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.keyboard;
1275
+ readonly pointer: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.pointer;
1276
+ readonly paste: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.paste;
1277
+ readonly selectOptions: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.selectOptions;
1278
+ readonly tripleClick: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.tripleClick;
1279
+ readonly type: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.type;
1280
+ readonly unhover: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.unhover;
1281
+ readonly upload: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.upload;
1282
+ readonly tab: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.tab;
1283
+ };
1284
+ declare const userEvent: {
1285
+ readonly setup: typeof _testing_library_user_event_dist_cjs_setup_setup_js.setupMain;
1286
+ readonly clear: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.clear;
1287
+ readonly click: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.click;
1288
+ readonly copy: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.copy;
1289
+ readonly cut: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.cut;
1290
+ readonly dblClick: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.dblClick;
1291
+ readonly deselectOptions: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.deselectOptions;
1292
+ readonly hover: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.hover;
1293
+ readonly keyboard: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.keyboard;
1294
+ readonly pointer: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.pointer;
1295
+ readonly paste: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.paste;
1296
+ readonly selectOptions: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.selectOptions;
1297
+ readonly tripleClick: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.tripleClick;
1298
+ readonly type: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.type;
1299
+ readonly unhover: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.unhover;
1300
+ readonly upload: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.upload;
1301
+ readonly tab: typeof _testing_library_user_event_dist_cjs_setup_directApi_js.tab;
1302
+ };
113
1303
 
114
1304
  type Listener = (mock: MockInstance, args: unknown[]) => void;
115
1305
  declare function onMockCall(callback: Listener): () => void;
116
1306
  declare const spyOn: typeof spyOn$1;
117
1307
  type Procedure = (...args: any[]) => any;
118
- type Mock<T extends Procedure | any[] = any[], R = any> = T extends Procedure ? Mock$1<T> : T extends any[] ? Mock$1<(...args: T) => R> : never;
119
1308
  declare function fn<T extends Procedure = Procedure>(implementation?: T): Mock<T>;
120
- declare function fn<TArgs extends any[] = any, R = any>(): Mock<(...args: TArgs) => R>;
121
- declare function fn<TArgs extends any[] = any[], R = any>(implementation: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
122
- declare function fn<TArgs extends any[] = any[], R = any>(implementation?: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
123
1309
  /**
124
1310
  * Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will
125
1311
  * only empty `.mock` state, it will not reset implementation.
@@ -183,4 +1369,4 @@ declare module 'storybook/internal/csf' {
183
1369
  }
184
1370
  declare const expect: Expect;
185
1371
 
186
- export { type Mock, type UserEvent, type UserEventObject, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, userEvent, waitFor, waitForElementToBeRemoved, within };
1372
+ export { type UserEvent, type UserEventObject, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, uninstrumentedUserEvent, userEvent, waitFor, waitForElementToBeRemoved, within };