@testing-library/react-native 11.4.0 → 11.5.0

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 (69) hide show
  1. package/README.md +3 -3
  2. package/build/cleanup.d.ts +1 -1
  3. package/build/config.d.ts +10 -2
  4. package/build/config.js +12 -3
  5. package/build/config.js.map +1 -1
  6. package/build/flushMicroTasks.d.ts +1 -1
  7. package/build/helpers/accessiblity.d.ts +10 -4
  8. package/build/helpers/accessiblity.js +19 -9
  9. package/build/helpers/accessiblity.js.map +1 -1
  10. package/build/helpers/debugDeep.d.ts +1 -1
  11. package/build/helpers/findAll.d.ts +10 -0
  12. package/build/helpers/findAll.js +44 -0
  13. package/build/helpers/findAll.js.map +1 -0
  14. package/build/helpers/format.d.ts +2 -2
  15. package/build/helpers/getTextContent.d.ts +2 -0
  16. package/build/helpers/getTextContent.js +20 -0
  17. package/build/helpers/getTextContent.js.map +1 -0
  18. package/build/helpers/matchers/accessibilityValue.d.ts +9 -0
  19. package/build/helpers/matchers/accessibilityValue.js +12 -0
  20. package/build/helpers/matchers/accessibilityValue.js.map +1 -0
  21. package/build/helpers/matchers/matchTextContent.d.ts +3 -0
  22. package/build/helpers/matchers/matchTextContent.js +22 -0
  23. package/build/helpers/matchers/matchTextContent.js.map +1 -0
  24. package/build/helpers/timers.js.map +1 -1
  25. package/build/index.flow.js +122 -54
  26. package/build/matches.d.ts +7 -3
  27. package/build/matches.js.map +1 -1
  28. package/build/pure.d.ts +12 -23
  29. package/build/pure.js +8 -2
  30. package/build/pure.js.map +1 -1
  31. package/build/queries/a11yState.d.ts +15 -14
  32. package/build/queries/a11yState.js +3 -2
  33. package/build/queries/a11yState.js.map +1 -1
  34. package/build/queries/a11yValue.d.ts +15 -20
  35. package/build/queries/a11yValue.js +16 -5
  36. package/build/queries/a11yValue.js.map +1 -1
  37. package/build/queries/displayValue.d.ts +11 -9
  38. package/build/queries/displayValue.js +2 -1
  39. package/build/queries/displayValue.js.map +1 -1
  40. package/build/queries/hintText.d.ts +23 -21
  41. package/build/queries/hintText.js +2 -1
  42. package/build/queries/hintText.js.map +1 -1
  43. package/build/queries/labelText.d.ts +11 -9
  44. package/build/queries/labelText.js +2 -1
  45. package/build/queries/labelText.js.map +1 -1
  46. package/build/queries/makeQueries.d.ts +8 -8
  47. package/build/queries/options.d.ts +11 -0
  48. package/build/queries/options.js +2 -0
  49. package/build/queries/options.js.map +1 -0
  50. package/build/queries/placeholderText.d.ts +11 -9
  51. package/build/queries/placeholderText.js +2 -1
  52. package/build/queries/placeholderText.js.map +1 -1
  53. package/build/queries/role.d.ts +7 -4
  54. package/build/queries/role.js +19 -10
  55. package/build/queries/role.js.map +1 -1
  56. package/build/queries/testId.d.ts +11 -9
  57. package/build/queries/testId.js +3 -2
  58. package/build/queries/testId.js.map +1 -1
  59. package/build/queries/text.d.ts +11 -13
  60. package/build/queries/text.js +6 -47
  61. package/build/queries/text.js.map +1 -1
  62. package/build/queries/unsafeProps.d.ts +1 -1
  63. package/build/queries/unsafeType.d.ts +1 -1
  64. package/build/render.d.ts +92 -146
  65. package/build/renderHook.d.ts +2 -2
  66. package/build/waitFor.d.ts +1 -1
  67. package/build/within.d.ts +90 -144
  68. package/package.json +8 -8
  69. package/typings/index.flow.js +122 -54
@@ -1,17 +1,15 @@
1
1
  import type { ReactTestInstance } from 'react-test-renderer';
2
- import { TextMatch } from '../matches';
3
- import type { NormalizerFn } from '../matches';
2
+ import { TextMatch, TextMatchOptions } from '../matches';
4
3
  import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './makeQueries';
5
- export declare type TextMatchOptions = {
6
- exact?: boolean;
7
- normalizer?: NormalizerFn;
8
- };
9
- export declare type ByTextQueries = {
10
- getByText: GetByQuery<TextMatch, TextMatchOptions>;
11
- getAllByText: GetAllByQuery<TextMatch, TextMatchOptions>;
12
- queryByText: QueryByQuery<TextMatch, TextMatchOptions>;
13
- queryAllByText: QueryAllByQuery<TextMatch, TextMatchOptions>;
14
- findByText: FindByQuery<TextMatch, TextMatchOptions>;
15
- findAllByText: FindAllByQuery<TextMatch, TextMatchOptions>;
4
+ import { CommonQueryOptions } from './options';
5
+ type ByTextOptions = CommonQueryOptions & TextMatchOptions;
6
+ export type ByTextQueries = {
7
+ getByText: GetByQuery<TextMatch, ByTextOptions>;
8
+ getAllByText: GetAllByQuery<TextMatch, ByTextOptions>;
9
+ queryByText: QueryByQuery<TextMatch, ByTextOptions>;
10
+ queryAllByText: QueryAllByQuery<TextMatch, ByTextOptions>;
11
+ findByText: FindByQuery<TextMatch, ByTextOptions>;
12
+ findAllByText: FindAllByQuery<TextMatch, ByTextOptions>;
16
13
  };
17
14
  export declare const bindByTextQueries: (instance: ReactTestInstance) => ByTextQueries;
15
+ export {};
@@ -5,60 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.bindByTextQueries = void 0;
7
7
  var _reactNative = require("react-native");
8
- var React = _interopRequireWildcard(require("react"));
9
- var _filterNodeByType = require("../helpers/filterNodeByType");
10
8
  var _componentTree = require("../helpers/component-tree");
11
- var _matches = require("../matches");
9
+ var _findAll = require("../helpers/findAll");
10
+ var _matchTextContent = require("../helpers/matchers/matchTextContent");
12
11
  var _makeQueries = require("./makeQueries");
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- const getChildrenAsText = children => {
16
- const textContent = [];
17
- React.Children.forEach(children, child => {
18
- if (typeof child === 'string') {
19
- textContent.push(child);
20
- return;
21
- }
22
- if (typeof child === 'number') {
23
- textContent.push(child.toString());
24
- return;
25
- }
26
- if (child?.props?.children) {
27
- // Bail on traversing text children down the tree if current node (child)
28
- // has no text. In such situations, react-test-renderer will traverse down
29
- // this tree in a separate call and run this query again. As a result, the
30
- // query will match the deepest text node that matches requested text.
31
- if ((0, _filterNodeByType.filterNodeByType)(child, _reactNative.Text)) {
32
- return;
33
- }
34
- if ((0, _filterNodeByType.filterNodeByType)(child, React.Fragment)) {
35
- textContent.push(...getChildrenAsText(child.props.children));
36
- }
37
- }
38
- });
39
- return textContent;
40
- };
41
- const getNodeByText = (node, text, options = {}) => {
42
- const isTextComponent = (0, _filterNodeByType.filterNodeByType)(node, _reactNative.Text);
43
- if (isTextComponent) {
44
- const textChildren = getChildrenAsText(node.props.children);
45
- if (textChildren) {
46
- const textToTest = textChildren.join('');
47
- const {
48
- exact,
49
- normalizer
50
- } = options;
51
- return (0, _matches.matches)(text, textToTest, normalizer, exact);
52
- }
53
- }
54
- return false;
55
- };
56
12
  const queryAllByText = instance => function queryAllByTextFn(text, options) {
57
13
  const baseInstance = (0, _componentTree.isHostElementForType)(instance, _reactNative.Text) ? (0, _componentTree.getCompositeParentOfType)(instance, _reactNative.Text) : instance;
58
14
  if (!baseInstance) {
59
15
  return [];
60
16
  }
61
- const results = baseInstance.findAll(node => getNodeByText(node, text, options));
17
+ const results = (0, _findAll.findAll)(baseInstance, node => (0, _matchTextContent.matchTextContent)(node, text, options), {
18
+ ...options,
19
+ matchDeepestOnly: true
20
+ });
62
21
  return results;
63
22
  };
64
23
  const getMultipleError = text => `Found multiple elements with text: ${String(text)}`;
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","names":["getChildrenAsText","children","textContent","React","Children","forEach","child","push","toString","props","filterNodeByType","Text","Fragment","getNodeByText","node","text","options","isTextComponent","textChildren","textToTest","join","exact","normalizer","matches","queryAllByText","instance","queryAllByTextFn","baseInstance","isHostElementForType","getCompositeParentOfType","results","findAll","getMultipleError","String","getMissingError","getBy","getAllBy","queryBy","queryAllBy","findBy","findAllBy","makeQueries","bindByTextQueries","getByText","getAllByText","queryByText","findByText","findAllByText"],"sources":["../../src/queries/text.ts"],"sourcesContent":["import type { ReactTestInstance } from 'react-test-renderer';\nimport { Text } from 'react-native';\nimport * as React from 'react';\nimport { filterNodeByType } from '../helpers/filterNodeByType';\nimport {\n isHostElementForType,\n getCompositeParentOfType,\n} from '../helpers/component-tree';\nimport { matches, TextMatch } from '../matches';\nimport type { NormalizerFn } from '../matches';\nimport { makeQueries } from './makeQueries';\nimport type {\n FindAllByQuery,\n FindByQuery,\n GetAllByQuery,\n GetByQuery,\n QueryAllByQuery,\n QueryByQuery,\n} from './makeQueries';\n\nexport type TextMatchOptions = {\n exact?: boolean;\n normalizer?: NormalizerFn;\n};\n\nconst getChildrenAsText = (children: React.ReactChild[]) => {\n const textContent: string[] = [];\n React.Children.forEach(children, (child) => {\n if (typeof child === 'string') {\n textContent.push(child);\n return;\n }\n\n if (typeof child === 'number') {\n textContent.push(child.toString());\n return;\n }\n\n if (child?.props?.children) {\n // Bail on traversing text children down the tree if current node (child)\n // has no text. In such situations, react-test-renderer will traverse down\n // this tree in a separate call and run this query again. As a result, the\n // query will match the deepest text node that matches requested text.\n if (filterNodeByType(child, Text)) {\n return;\n }\n\n if (filterNodeByType(child, React.Fragment)) {\n textContent.push(...getChildrenAsText(child.props.children));\n }\n }\n });\n\n return textContent;\n};\n\nconst getNodeByText = (\n node: ReactTestInstance,\n text: TextMatch,\n options: TextMatchOptions = {}\n) => {\n const isTextComponent = filterNodeByType(node, Text);\n if (isTextComponent) {\n const textChildren = getChildrenAsText(node.props.children);\n if (textChildren) {\n const textToTest = textChildren.join('');\n const { exact, normalizer } = options;\n return matches(text, textToTest, normalizer, exact);\n }\n }\n return false;\n};\n\nconst queryAllByText = (\n instance: ReactTestInstance\n): ((\n text: TextMatch,\n options?: TextMatchOptions\n) => Array<ReactTestInstance>) =>\n function queryAllByTextFn(text, options) {\n const baseInstance = isHostElementForType(instance, Text)\n ? getCompositeParentOfType(instance, Text)\n : instance;\n\n if (!baseInstance) {\n return [];\n }\n\n const results = baseInstance.findAll((node) =>\n getNodeByText(node, text, options)\n );\n\n return results;\n };\n\nconst getMultipleError = (text: TextMatch) =>\n `Found multiple elements with text: ${String(text)}`;\nconst getMissingError = (text: TextMatch) =>\n `Unable to find an element with text: ${String(text)}`;\n\nconst { getBy, getAllBy, queryBy, queryAllBy, findBy, findAllBy } = makeQueries(\n queryAllByText,\n getMissingError,\n getMultipleError\n);\n\nexport type ByTextQueries = {\n getByText: GetByQuery<TextMatch, TextMatchOptions>;\n getAllByText: GetAllByQuery<TextMatch, TextMatchOptions>;\n queryByText: QueryByQuery<TextMatch, TextMatchOptions>;\n queryAllByText: QueryAllByQuery<TextMatch, TextMatchOptions>;\n findByText: FindByQuery<TextMatch, TextMatchOptions>;\n findAllByText: FindAllByQuery<TextMatch, TextMatchOptions>;\n};\n\nexport const bindByTextQueries = (\n instance: ReactTestInstance\n): ByTextQueries => ({\n getByText: getBy(instance),\n getAllByText: getAllBy(instance),\n queryByText: queryBy(instance),\n queryAllByText: queryAllBy(instance),\n findByText: findBy(instance),\n findAllByText: findAllBy(instance),\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"text.js","names":["queryAllByText","instance","queryAllByTextFn","text","options","baseInstance","isHostElementForType","Text","getCompositeParentOfType","results","findAll","node","matchTextContent","matchDeepestOnly","getMultipleError","String","getMissingError","getBy","getAllBy","queryBy","queryAllBy","findBy","findAllBy","makeQueries","bindByTextQueries","getByText","getAllByText","queryByText","findByText","findAllByText"],"sources":["../../src/queries/text.ts"],"sourcesContent":["import type { ReactTestInstance } from 'react-test-renderer';\nimport { Text } from 'react-native';\nimport {\n isHostElementForType,\n getCompositeParentOfType,\n} from '../helpers/component-tree';\nimport { findAll } from '../helpers/findAll';\nimport { matchTextContent } from '../helpers/matchers/matchTextContent';\nimport { TextMatch, TextMatchOptions } from '../matches';\nimport { makeQueries } from './makeQueries';\nimport type {\n FindAllByQuery,\n FindByQuery,\n GetAllByQuery,\n GetByQuery,\n QueryAllByQuery,\n QueryByQuery,\n} from './makeQueries';\nimport { CommonQueryOptions } from './options';\n\ntype ByTextOptions = CommonQueryOptions & TextMatchOptions;\n\nconst queryAllByText = (\n instance: ReactTestInstance\n): ((text: TextMatch, options?: ByTextOptions) => Array<ReactTestInstance>) =>\n function queryAllByTextFn(text, options) {\n const baseInstance = isHostElementForType(instance, Text)\n ? getCompositeParentOfType(instance, Text)\n : instance;\n\n if (!baseInstance) {\n return [];\n }\n\n const results = findAll(\n baseInstance,\n (node) => matchTextContent(node, text, options),\n { ...options, matchDeepestOnly: true }\n );\n\n return results;\n };\n\nconst getMultipleError = (text: TextMatch) =>\n `Found multiple elements with text: ${String(text)}`;\n\nconst getMissingError = (text: TextMatch) =>\n `Unable to find an element with text: ${String(text)}`;\n\nconst { getBy, getAllBy, queryBy, queryAllBy, findBy, findAllBy } = makeQueries(\n queryAllByText,\n getMissingError,\n getMultipleError\n);\n\nexport type ByTextQueries = {\n getByText: GetByQuery<TextMatch, ByTextOptions>;\n getAllByText: GetAllByQuery<TextMatch, ByTextOptions>;\n queryByText: QueryByQuery<TextMatch, ByTextOptions>;\n queryAllByText: QueryAllByQuery<TextMatch, ByTextOptions>;\n findByText: FindByQuery<TextMatch, ByTextOptions>;\n findAllByText: FindAllByQuery<TextMatch, ByTextOptions>;\n};\n\nexport const bindByTextQueries = (\n instance: ReactTestInstance\n): ByTextQueries => ({\n getByText: getBy(instance),\n getAllByText: getAllBy(instance),\n queryByText: queryBy(instance),\n queryAllByText: queryAllBy(instance),\n findByText: findBy(instance),\n findAllByText: findAllBy(instance),\n});\n"],"mappings":";;;;;;AACA;AACA;AAIA;AACA;AAEA;AAaA,MAAMA,cAAc,GAClBC,QAA2B,IAE3B,SAASC,gBAAgB,CAACC,IAAI,EAAEC,OAAO,EAAE;EACvC,MAAMC,YAAY,GAAG,IAAAC,mCAAoB,EAACL,QAAQ,EAAEM,iBAAI,CAAC,GACrD,IAAAC,uCAAwB,EAACP,QAAQ,EAAEM,iBAAI,CAAC,GACxCN,QAAQ;EAEZ,IAAI,CAACI,YAAY,EAAE;IACjB,OAAO,EAAE;EACX;EAEA,MAAMI,OAAO,GAAG,IAAAC,gBAAO,EACrBL,YAAY,EACXM,IAAI,IAAK,IAAAC,kCAAgB,EAACD,IAAI,EAAER,IAAI,EAAEC,OAAO,CAAC,EAC/C;IAAE,GAAGA,OAAO;IAAES,gBAAgB,EAAE;EAAK,CAAC,CACvC;EAED,OAAOJ,OAAO;AAChB,CAAC;AAEH,MAAMK,gBAAgB,GAAIX,IAAe,IACtC,sCAAqCY,MAAM,CAACZ,IAAI,CAAE,EAAC;AAEtD,MAAMa,eAAe,GAAIb,IAAe,IACrC,wCAAuCY,MAAM,CAACZ,IAAI,CAAE,EAAC;AAExD,MAAM;EAAEc,KAAK;EAAEC,QAAQ;EAAEC,OAAO;EAAEC,UAAU;EAAEC,MAAM;EAAEC;AAAU,CAAC,GAAG,IAAAC,wBAAW,EAC7EvB,cAAc,EACdgB,eAAe,EACfF,gBAAgB,CACjB;AAWM,MAAMU,iBAAiB,GAC5BvB,QAA2B,KACR;EACnBwB,SAAS,EAAER,KAAK,CAAChB,QAAQ,CAAC;EAC1ByB,YAAY,EAAER,QAAQ,CAACjB,QAAQ,CAAC;EAChC0B,WAAW,EAAER,OAAO,CAAClB,QAAQ,CAAC;EAC9BD,cAAc,EAAEoB,UAAU,CAACnB,QAAQ,CAAC;EACpC2B,UAAU,EAAEP,MAAM,CAACpB,QAAQ,CAAC;EAC5B4B,aAAa,EAAEP,SAAS,CAACrB,QAAQ;AACnC,CAAC,CAAC;AAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactTestInstance } from 'react-test-renderer';
2
- export declare type UnsafeByPropsQueries = {
2
+ export type UnsafeByPropsQueries = {
3
3
  UNSAFE_getByProps: (props: {
4
4
  [key: string]: any;
5
5
  }) => ReactTestInstance;
@@ -1,6 +1,6 @@
1
1
  import type { ReactTestInstance } from 'react-test-renderer';
2
2
  import * as React from 'react';
3
- export declare type UnsafeByTypeQueries = {
3
+ export type UnsafeByTypeQueries = {
4
4
  UNSAFE_getByType: <P>(type: React.ComponentType<P>) => ReactTestInstance;
5
5
  UNSAFE_getAllByType: <P>(type: React.ComponentType<P>) => Array<ReactTestInstance>;
6
6
  UNSAFE_queryByType: <P>(type: React.ComponentType<P>) => ReactTestInstance | null;
package/build/render.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import TestRenderer from 'react-test-renderer';
2
2
  import * as React from 'react';
3
3
  import { DebugOptions } from './helpers/debugDeep';
4
- export declare type RenderOptions = {
4
+ export type RenderOptions = {
5
5
  wrapper?: React.ComponentType<any>;
6
6
  createNodeMock?: (element: React.ReactElement) => any;
7
7
  unstable_validateStringsRenderedWithinText?: boolean;
8
8
  };
9
- export declare type RenderResult = ReturnType<typeof render>;
9
+ export type RenderResult = ReturnType<typeof render>;
10
10
  /**
11
11
  * Renders test component deeply using react-test-renderer and exposes helpers
12
12
  * to assert on the output.
@@ -34,156 +34,102 @@ export default function render<T>(component: React.ReactElement<T>, { wrapper: W
34
34
  UNSAFE_getAllByType: <P_1>(type: React.ComponentType<P_1>) => TestRenderer.ReactTestInstance[];
35
35
  UNSAFE_queryByType: <P_2>(type: React.ComponentType<P_2>) => TestRenderer.ReactTestInstance | null;
36
36
  UNSAFE_queryAllByType: <P_3>(type: React.ComponentType<P_3>) => TestRenderer.ReactTestInstance[];
37
- getByA11yValue: import("./queries/makeQueries").GetByQuery<{
38
- min?: number | undefined;
39
- max?: number | undefined;
40
- now?: number | undefined;
41
- text?: string | undefined;
42
- }, void>;
43
- getAllByA11yValue: import("./queries/makeQueries").GetAllByQuery<{
44
- min?: number | undefined;
45
- max?: number | undefined;
46
- now?: number | undefined;
47
- text?: string | undefined;
48
- }, void>;
49
- queryByA11yValue: import("./queries/makeQueries").QueryByQuery<{
50
- min?: number | undefined;
51
- max?: number | undefined;
52
- now?: number | undefined;
53
- text?: string | undefined;
54
- }, void>;
55
- queryAllByA11yValue: import("./queries/makeQueries").QueryAllByQuery<{
56
- min?: number | undefined;
57
- max?: number | undefined;
58
- now?: number | undefined;
59
- text?: string | undefined;
60
- }, void>;
61
- findByA11yValue: import("./queries/makeQueries").FindByQuery<{
62
- min?: number | undefined;
63
- max?: number | undefined;
64
- now?: number | undefined;
65
- text?: string | undefined;
66
- }, void>;
67
- findAllByA11yValue: import("./queries/makeQueries").FindAllByQuery<{
68
- min?: number | undefined;
69
- max?: number | undefined;
70
- now?: number | undefined;
71
- text?: string | undefined;
72
- }, void>;
73
- getByAccessibilityValue: import("./queries/makeQueries").GetByQuery<{
74
- min?: number | undefined;
75
- max?: number | undefined;
76
- now?: number | undefined;
77
- text?: string | undefined;
78
- }, void>;
79
- getAllByAccessibilityValue: import("./queries/makeQueries").GetAllByQuery<{
80
- min?: number | undefined;
81
- max?: number | undefined;
82
- now?: number | undefined;
83
- text?: string | undefined;
84
- }, void>;
85
- queryByAccessibilityValue: import("./queries/makeQueries").QueryByQuery<{
86
- min?: number | undefined;
87
- max?: number | undefined;
88
- now?: number | undefined;
89
- text?: string | undefined;
90
- }, void>;
91
- queryAllByAccessibilityValue: import("./queries/makeQueries").QueryAllByQuery<{
92
- min?: number | undefined;
93
- max?: number | undefined;
94
- now?: number | undefined;
95
- text?: string | undefined;
96
- }, void>;
97
- findByAccessibilityValue: import("./queries/makeQueries").FindByQuery<{
98
- min?: number | undefined;
99
- max?: number | undefined;
100
- now?: number | undefined;
101
- text?: string | undefined;
102
- }, void>;
103
- findAllByAccessibilityValue: import("./queries/makeQueries").FindAllByQuery<{
104
- min?: number | undefined;
105
- max?: number | undefined;
106
- now?: number | undefined;
107
- text?: string | undefined;
108
- }, void>;
109
- getByA11yState: import("./queries/makeQueries").GetByQuery<import("react-native").AccessibilityState, void>;
110
- getAllByA11yState: import("./queries/makeQueries").GetAllByQuery<import("react-native").AccessibilityState, void>;
111
- queryByA11yState: import("./queries/makeQueries").QueryByQuery<import("react-native").AccessibilityState, void>;
112
- queryAllByA11yState: import("./queries/makeQueries").QueryAllByQuery<import("react-native").AccessibilityState, void>;
113
- findByA11yState: import("./queries/makeQueries").FindByQuery<import("react-native").AccessibilityState, void>;
114
- findAllByA11yState: import("./queries/makeQueries").FindAllByQuery<import("react-native").AccessibilityState, void>;
115
- getByAccessibilityState: import("./queries/makeQueries").GetByQuery<import("react-native").AccessibilityState, void>;
116
- getAllByAccessibilityState: import("./queries/makeQueries").GetAllByQuery<import("react-native").AccessibilityState, void>;
117
- queryByAccessibilityState: import("./queries/makeQueries").QueryByQuery<import("react-native").AccessibilityState, void>;
118
- queryAllByAccessibilityState: import("./queries/makeQueries").QueryAllByQuery<import("react-native").AccessibilityState, void>;
119
- findByAccessibilityState: import("./queries/makeQueries").FindByQuery<import("react-native").AccessibilityState, void>;
120
- findAllByAccessibilityState: import("./queries/makeQueries").FindAllByQuery<import("react-native").AccessibilityState, void>;
121
- getByRole: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, {
37
+ getByA11yValue: import("./queries/makeQueries").GetByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
38
+ getAllByA11yValue: import("./queries/makeQueries").GetAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
39
+ queryByA11yValue: import("./queries/makeQueries").QueryByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
40
+ queryAllByA11yValue: import("./queries/makeQueries").QueryAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
41
+ findByA11yValue: import("./queries/makeQueries").FindByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
42
+ findAllByA11yValue: import("./queries/makeQueries").FindAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
43
+ getByAccessibilityValue: import("./queries/makeQueries").GetByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
44
+ getAllByAccessibilityValue: import("./queries/makeQueries").GetAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
45
+ queryByAccessibilityValue: import("./queries/makeQueries").QueryByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
46
+ queryAllByAccessibilityValue: import("./queries/makeQueries").QueryAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
47
+ findByAccessibilityValue: import("./queries/makeQueries").FindByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
48
+ findAllByAccessibilityValue: import("./queries/makeQueries").FindAllByQuery<import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher, import("./queries/options").CommonQueryOptions>;
49
+ getByA11yState: import("./queries/makeQueries").GetByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
50
+ getAllByA11yState: import("./queries/makeQueries").GetAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
51
+ queryByA11yState: import("./queries/makeQueries").QueryByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
52
+ queryAllByA11yState: import("./queries/makeQueries").QueryAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
53
+ findByA11yState: import("./queries/makeQueries").FindByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
54
+ findAllByA11yState: import("./queries/makeQueries").FindAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
55
+ getByAccessibilityState: import("./queries/makeQueries").GetByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
56
+ getAllByAccessibilityState: import("./queries/makeQueries").GetAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
57
+ queryByAccessibilityState: import("./queries/makeQueries").QueryByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
58
+ queryAllByAccessibilityState: import("./queries/makeQueries").QueryAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
59
+ findByAccessibilityState: import("./queries/makeQueries").FindByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
60
+ findAllByAccessibilityState: import("./queries/makeQueries").FindAllByQuery<import("react-native").AccessibilityState, import("./queries/options").CommonQueryOptions>;
61
+ getByRole: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
122
62
  name?: import("./matches").TextMatch | undefined;
123
- } & import("react-native").AccessibilityState>;
124
- getAllByRole: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, {
63
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
64
+ }>;
65
+ getAllByRole: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
125
66
  name?: import("./matches").TextMatch | undefined;
126
- } & import("react-native").AccessibilityState>;
127
- queryByRole: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, {
67
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
68
+ }>;
69
+ queryByRole: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
128
70
  name?: import("./matches").TextMatch | undefined;
129
- } & import("react-native").AccessibilityState>;
130
- queryAllByRole: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, {
71
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
72
+ }>;
73
+ queryAllByRole: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
131
74
  name?: import("./matches").TextMatch | undefined;
132
- } & import("react-native").AccessibilityState>;
133
- findByRole: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, {
75
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
76
+ }>;
77
+ findByRole: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
134
78
  name?: import("./matches").TextMatch | undefined;
135
- } & import("react-native").AccessibilityState>;
136
- findAllByRole: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, {
79
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
80
+ }>;
81
+ findAllByRole: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("react-native").AccessibilityState & {
137
82
  name?: import("./matches").TextMatch | undefined;
138
- } & import("react-native").AccessibilityState>;
139
- getByHintText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
140
- getAllByHintText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
141
- queryByHintText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
142
- queryAllByHintText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
143
- findByHintText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
144
- findAllByHintText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
145
- getByA11yHint: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
146
- getAllByA11yHint: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
147
- queryByA11yHint: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
148
- queryAllByA11yHint: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
149
- findByA11yHint: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
150
- findAllByA11yHint: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
151
- getByAccessibilityHint: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
152
- getAllByAccessibilityHint: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
153
- queryByAccessibilityHint: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
154
- queryAllByAccessibilityHint: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
155
- findByAccessibilityHint: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
156
- findAllByAccessibilityHint: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
157
- getByLabelText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
158
- getAllByLabelText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
159
- queryByLabelText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
160
- queryAllByLabelText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
161
- findByLabelText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
162
- findAllByLabelText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
163
- getByPlaceholderText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
164
- getAllByPlaceholderText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
165
- queryByPlaceholderText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
166
- queryAllByPlaceholderText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
167
- findByPlaceholderText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
168
- findAllByPlaceholderText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
169
- getByDisplayValue: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
170
- getAllByDisplayValue: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
171
- queryByDisplayValue: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
172
- queryAllByDisplayValue: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
173
- findByDisplayValue: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
174
- findAllByDisplayValue: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
175
- getByTestId: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
176
- getAllByTestId: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
177
- queryByTestId: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
178
- queryAllByTestId: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
179
- findByTestId: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
180
- findAllByTestId: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
181
- getByText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
182
- getAllByText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
183
- queryByText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
184
- queryAllByText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
185
- findByText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
186
- findAllByText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/text").TextMatchOptions>;
83
+ value?: import("./helpers/matchers/accessibilityValue").AccessibilityValueMatcher | undefined;
84
+ }>;
85
+ getByHintText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
86
+ getAllByHintText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
87
+ queryByHintText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
88
+ queryAllByHintText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
89
+ findByHintText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
90
+ findAllByHintText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
91
+ getByA11yHint: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
92
+ getAllByA11yHint: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
93
+ queryByA11yHint: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
94
+ queryAllByA11yHint: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
95
+ findByA11yHint: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
96
+ findAllByA11yHint: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
97
+ getByAccessibilityHint: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
98
+ getAllByAccessibilityHint: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
99
+ queryByAccessibilityHint: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
100
+ queryAllByAccessibilityHint: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
101
+ findByAccessibilityHint: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
102
+ findAllByAccessibilityHint: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
103
+ getByLabelText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
104
+ getAllByLabelText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
105
+ queryByLabelText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
106
+ queryAllByLabelText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
107
+ findByLabelText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
108
+ findAllByLabelText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
109
+ getByPlaceholderText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
110
+ getAllByPlaceholderText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
111
+ queryByPlaceholderText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
112
+ queryAllByPlaceholderText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
113
+ findByPlaceholderText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
114
+ findAllByPlaceholderText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
115
+ getByDisplayValue: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
116
+ getAllByDisplayValue: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
117
+ queryByDisplayValue: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
118
+ queryAllByDisplayValue: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
119
+ findByDisplayValue: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
120
+ findAllByDisplayValue: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
121
+ getByTestId: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
122
+ getAllByTestId: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
123
+ queryByTestId: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
124
+ queryAllByTestId: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
125
+ findByTestId: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
126
+ findAllByTestId: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
127
+ getByText: import("./queries/makeQueries").GetByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
128
+ getAllByText: import("./queries/makeQueries").GetAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
129
+ queryByText: import("./queries/makeQueries").QueryByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
130
+ queryAllByText: import("./queries/makeQueries").QueryAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
131
+ findByText: import("./queries/makeQueries").FindByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
132
+ findAllByText: import("./queries/makeQueries").FindAllByQuery<import("./matches").TextMatch, import("./queries/options").CommonQueryOptions & import("./matches").TextMatchOptions>;
187
133
  };
188
134
  interface DebugFunction {
189
135
  (options?: DebugOptions | string): void;
@@ -1,12 +1,12 @@
1
1
  import type { ComponentType } from 'react';
2
- export declare type RenderHookResult<Result, Props> = {
2
+ export type RenderHookResult<Result, Props> = {
3
3
  rerender: (props: Props) => void;
4
4
  result: {
5
5
  current: Result;
6
6
  };
7
7
  unmount: () => void;
8
8
  };
9
- export declare type RenderHookOptions<Props> = Props extends object | string | number | boolean ? {
9
+ export type RenderHookOptions<Props> = Props extends object | string | number | boolean ? {
10
10
  initialProps: Props;
11
11
  wrapper?: ComponentType<any>;
12
12
  } : {
@@ -1,5 +1,5 @@
1
1
  import { ErrorWithStack } from './helpers/errors';
2
- export declare type WaitForOptions = {
2
+ export type WaitForOptions = {
3
3
  timeout?: number;
4
4
  interval?: number;
5
5
  stackTraceError?: ErrorWithStack;