import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers'; import { AsymmetricMatchersContaining, JestAssertion, ExpectStatic, MatchersObject, MatcherState } from '@vitest/expect'; import * as _userEvent from '@testing-library/user-event'; import { userEvent as userEvent$1 } from '@testing-library/user-event'; import * as _testing_library_user_event_dist_cjs_setup_directApi_js from '@testing-library/user-event/dist/cjs/setup/directApi.js'; import * as _testing_library_user_event_dist_cjs_setup_setup_js from '@testing-library/user-event/dist/cjs/setup/setup.js'; import { MockInstance, spyOn as spyOn$1, Mock, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy'; export * from '@vitest/spy'; export { isMockFunction, mocks } from '@vitest/spy'; type Promisify = Fn extends { (...args: infer Args): infer Return; } ? { (...args: Args): Return extends Promise ? Return : Promise; } : Fn extends { (...args: infer Args): infer Return; } ? { (...args: Args): Return extends Promise ? Return : Promise; } : Fn; type PromisifyObject = { [K in keyof O]: Promisify; }; type Matchers = PromisifyObject> & TestingLibraryMatchers, Promise>; interface Assertion extends Matchers { toHaveBeenCalledOnce(): Promise; toSatisfy(matcher: (value: E) => boolean, message?: string): Promise; resolves: Assertion; rejects: Assertion; not: Assertion; } interface Expect extends AsymmetricMatchersContaining { (actual: T, message?: string): Assertion; unreachable(message?: string): Promise; soft(actual: T, message?: string): Assertion; extend(expects: MatchersObject): void; assertions(expected: number): Promise; hasAssertions(): Promise; anything(): any; any(constructor: unknown): any; getState(): MatcherState; setState(state: Partial): void; not: AsymmetricMatchersContaining; } // Disable automatic exports. type ARIAWidgetRole = | "button" | "checkbox" | "gridcell" | "link" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tabpanel" | "textbox" | "treeitem"; type ARIACompositeWidgetRole = | "combobox" | "grid" | "listbox" | "menu" | "menubar" | "radiogroup" | "tablist" | "tree" | "treegrid"; type ARIADocumentStructureRole = | "application" | "article" | "blockquote" | "caption" | "cell" | "columnheader" | "definition" | "deletion" | "directory" | "document" | "emphasis" | "feed" | "figure" | "generic" | "group" | "heading" | "img" | "insertion" | "list" | "listitem" | "math" | "meter" | "none" | "note" | "paragraph" | "presentation" | "row" | "rowgroup" | "rowheader" | "separator" | "strong" | "subscript" | "superscript" | "table" | "term" | "time" | "toolbar" | "tooltip"; type ARIALandmarkRole = | "banner" | "complementary" | "contentinfo" | "form" | "main" | "navigation" | "region" | "search"; type ARIALiveRegionRole = "alert" | "log" | "marquee" | "status" | "timer"; type ARIAWindowRole = "alertdialog" | "dialog"; type ARIAUncategorizedRole = "code"; type ARIARole = | ARIAWidgetRole | ARIACompositeWidgetRole | ARIADocumentStructureRole | ARIALandmarkRole | ARIALiveRegionRole | ARIAWindowRole | ARIAUncategorizedRole; type MatcherFunction = ( content: string, element: Element | null, ) => boolean type Matcher = MatcherFunction | RegExp | number | string // Get autocomplete for ARIARole union types, while still supporting another string // Ref: https://github.com/microsoft/TypeScript/issues/29729#issuecomment-567871939 type ByRoleMatcher = ARIARole | (string & {}) type NormalizerFn = (text: string) => string interface MatcherOptions { exact?: boolean /** Use normalizer with getDefaultNormalizer instead */ trim?: boolean /** Use normalizer with getDefaultNormalizer instead */ collapseWhitespace?: boolean normalizer?: NormalizerFn /** suppress suggestions for a specific query */ suggest?: boolean } interface DefaultNormalizerOptions { trim?: boolean collapseWhitespace?: boolean } declare function getDefaultNormalizer$1( options?: DefaultNormalizerOptions, ): NormalizerFn interface waitForOptions { container?: HTMLElement timeout?: number interval?: number onTimeout?: (error: Error) => Error mutationObserverOptions?: MutationObserverInit } declare function waitFor$1( callback: () => Promise | T, options?: waitForOptions, ): Promise type WithSuggest = {suggest?: boolean} type GetErrorFunction = ( c: Element | null, ...args: Arguments ) => string interface SelectorMatcherOptions extends MatcherOptions { selector?: string ignore?: boolean | string } type QueryByAttribute = ( attribute: string, container: HTMLElement, id: Matcher, options?: MatcherOptions, ) => HTMLElement | null type AllByAttribute = ( attribute: string, container: HTMLElement, id: Matcher, options?: MatcherOptions, ) => HTMLElement[] declare const queryByAttribute$1: QueryByAttribute declare const queryAllByAttribute$1: AllByAttribute declare function getElementError$1( message: string | null, container: HTMLElement, ): Error /** * query methods have a common call signature. Only the return type differs. */ type QueryMethod = ( container: HTMLElement, ...args: Arguments ) => Return type QueryBy = QueryMethod< Arguments, HTMLElement | null > type GetAllBy = QueryMethod< Arguments, HTMLElement[] > type FindAllBy = QueryMethod< [Arguments[0], Arguments[1]?, waitForOptions?], Promise > type GetBy = QueryMethod type FindBy = QueryMethod< [Arguments[0], Arguments[1]?, waitForOptions?], Promise > type BuiltQueryMethods = [ QueryBy, GetAllBy, GetBy, FindAllBy, FindBy, ] declare function buildQueries$1( queryAllBy: GetAllBy, getMultipleError: GetErrorFunction, getMissingError: GetErrorFunction, ): BuiltQueryMethods type queryHelpers_d_AllByAttribute = AllByAttribute; type queryHelpers_d_BuiltQueryMethods = BuiltQueryMethods; type queryHelpers_d_FindAllBy = FindAllBy; type queryHelpers_d_FindBy = FindBy; type queryHelpers_d_GetAllBy = GetAllBy; type queryHelpers_d_GetBy = GetBy; type queryHelpers_d_GetErrorFunction = GetErrorFunction; type queryHelpers_d_QueryBy = QueryBy; type queryHelpers_d_QueryByAttribute = QueryByAttribute; type queryHelpers_d_QueryMethod = QueryMethod; type queryHelpers_d_SelectorMatcherOptions = SelectorMatcherOptions; type queryHelpers_d_WithSuggest = WithSuggest; declare namespace queryHelpers_d { 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 }; } type QueryByBoundAttribute = ( container: HTMLElement, id: Matcher, options?: MatcherOptions, ) => T | null type AllByBoundAttribute = ( container: HTMLElement, id: Matcher, options?: MatcherOptions, ) => T[] type FindAllByBoundAttribute = ( container: HTMLElement, id: Matcher, options?: MatcherOptions, waitForElementOptions?: waitForOptions, ) => Promise type GetByBoundAttribute = ( container: HTMLElement, id: Matcher, options?: MatcherOptions, ) => T type FindByBoundAttribute = ( container: HTMLElement, id: Matcher, options?: MatcherOptions, waitForElementOptions?: waitForOptions, ) => Promise type QueryByText = ( container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, ) => T | null type AllByText = ( container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, ) => T[] type FindAllByText = ( container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions, ) => Promise type GetByText = ( container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, ) => T type FindByText = ( container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions, ) => Promise interface ByRoleOptions { /** suppress suggestions for a specific query */ suggest?: boolean /** * If true includes elements in the query set that are usually excluded from * the accessibility tree. `role="none"` or `role="presentation"` are included * in either case. */ hidden?: boolean /** * If true only includes elements in the query set that are marked as * selected in the accessibility tree, i.e., `aria-selected="true"` */ selected?: boolean /** * If true only includes elements in the query set that are marked as * busy in the accessibility tree, i.e., `aria-busy="true"` */ busy?: boolean /** * If true only includes elements in the query set that are marked as * checked in the accessibility tree, i.e., `aria-checked="true"` */ checked?: boolean /** * If true only includes elements in the query set that are marked as * pressed in the accessibility tree, i.e., `aria-pressed="true"` */ pressed?: boolean /** * 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. */ current?: boolean | string /** * If true only includes elements in the query set that are marked as * expanded in the accessibility tree, i.e., `aria-expanded="true"` */ expanded?: boolean /** * Includes elements with the `"heading"` role matching the indicated level, * either by the semantic HTML heading elements `

-

` or matching * the `aria-level` attribute. */ level?: number value?: { now?: number min?: number max?: number text?: Matcher } /** * Includes every role used in the `role` attribute * For example *ByRole('progressbar', {queryFallbacks: true})` will find
`. */ queryFallbacks?: boolean /** * Only considers elements with the specified accessible name. */ name?: | RegExp | string | ((accessibleName: string, element: Element) => boolean) /** * Only considers elements with the specified accessible description. */ description?: | RegExp | string | ((accessibleDescription: string, element: Element) => boolean) } type AllByRole = ( container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, ) => T[] type GetByRole = ( container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, ) => T type QueryByRole = ( container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, ) => T | null type FindByRole = ( container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, waitForElementOptions?: waitForOptions, ) => Promise type FindAllByRole = ( container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, waitForElementOptions?: waitForOptions, ) => Promise declare function getByLabelText$1( ...args: Parameters> ): ReturnType> declare function getAllByLabelText$1( ...args: Parameters> ): ReturnType> declare function queryByLabelText$1( ...args: Parameters> ): ReturnType> declare function queryAllByLabelText$1( ...args: Parameters> ): ReturnType> declare function findByLabelText$1( ...args: Parameters> ): ReturnType> declare function findAllByLabelText$1( ...args: Parameters> ): ReturnType> declare function getByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function getAllByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function queryByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function queryAllByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function findByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function findAllByPlaceholderText$1( ...args: Parameters> ): ReturnType> declare function getByText$1( ...args: Parameters> ): ReturnType> declare function getAllByText$1( ...args: Parameters> ): ReturnType> declare function queryByText$1( ...args: Parameters> ): ReturnType> declare function queryAllByText$1( ...args: Parameters> ): ReturnType> declare function findByText$1( ...args: Parameters> ): ReturnType> declare function findAllByText$1( ...args: Parameters> ): ReturnType> declare function getByAltText$1( ...args: Parameters> ): ReturnType> declare function getAllByAltText$1( ...args: Parameters> ): ReturnType> declare function queryByAltText$1( ...args: Parameters> ): ReturnType> declare function queryAllByAltText$1( ...args: Parameters> ): ReturnType> declare function findByAltText$1( ...args: Parameters> ): ReturnType> declare function findAllByAltText$1( ...args: Parameters> ): ReturnType> declare function getByTitle$1( ...args: Parameters> ): ReturnType> declare function getAllByTitle$1( ...args: Parameters> ): ReturnType> declare function queryByTitle$1( ...args: Parameters> ): ReturnType> declare function queryAllByTitle$1( ...args: Parameters> ): ReturnType> declare function findByTitle$1( ...args: Parameters> ): ReturnType> declare function findAllByTitle$1( ...args: Parameters> ): ReturnType> declare function getByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function getAllByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function queryByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function queryAllByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function findByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function findAllByDisplayValue$1( ...args: Parameters> ): ReturnType> declare function getByRole$1( ...args: Parameters> ): ReturnType> declare function getAllByRole$1( ...args: Parameters> ): ReturnType> declare function queryByRole$1( ...args: Parameters> ): ReturnType> declare function queryAllByRole$1( ...args: Parameters> ): ReturnType> declare function findByRole$1( ...args: Parameters> ): ReturnType> declare function findAllByRole$1( ...args: Parameters> ): ReturnType> declare function getByTestId$1( ...args: Parameters> ): ReturnType> declare function getAllByTestId$1( ...args: Parameters> ): ReturnType> declare function queryByTestId$1( ...args: Parameters> ): ReturnType> declare function queryAllByTestId$1( ...args: Parameters> ): ReturnType> declare function findByTestId$1( ...args: Parameters> ): ReturnType> declare function findAllByTestId$1( ...args: Parameters> ): ReturnType> type queries$1_AllByBoundAttribute = AllByBoundAttribute; type queries$1_AllByRole = AllByRole; type queries$1_AllByText = AllByText; type queries$1_ByRoleOptions = ByRoleOptions; type queries$1_FindAllByBoundAttribute = FindAllByBoundAttribute; type queries$1_FindAllByRole = FindAllByRole; type queries$1_FindAllByText = FindAllByText; type queries$1_FindByBoundAttribute = FindByBoundAttribute; type queries$1_FindByRole = FindByRole; type queries$1_FindByText = FindByText; type queries$1_GetByBoundAttribute = GetByBoundAttribute; type queries$1_GetByRole = GetByRole; type queries$1_GetByText = GetByText; type queries$1_QueryByBoundAttribute = QueryByBoundAttribute; type queries$1_QueryByRole = QueryByRole; type queries$1_QueryByText = QueryByText; declare namespace queries$1 { 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 }; } type BoundFunction = T extends ( container: HTMLElement, ...args: infer P ) => infer R ? (...args: P) => R : never type BoundFunctions = Q extends typeof queries$1 ? { getByLabelText( ...args: Parameters>> ): ReturnType> getAllByLabelText( ...args: Parameters>> ): ReturnType> queryByLabelText( ...args: Parameters>> ): ReturnType> queryAllByLabelText( ...args: Parameters>> ): ReturnType> findByLabelText( ...args: Parameters>> ): ReturnType> findAllByLabelText( ...args: Parameters>> ): ReturnType> getByPlaceholderText( ...args: Parameters>> ): ReturnType> getAllByPlaceholderText( ...args: Parameters>> ): ReturnType> queryByPlaceholderText( ...args: Parameters>> ): ReturnType> queryAllByPlaceholderText( ...args: Parameters>> ): ReturnType> findByPlaceholderText( ...args: Parameters>> ): ReturnType> findAllByPlaceholderText( ...args: Parameters>> ): ReturnType> getByText( ...args: Parameters>> ): ReturnType> getAllByText( ...args: Parameters>> ): ReturnType> queryByText( ...args: Parameters>> ): ReturnType> queryAllByText( ...args: Parameters>> ): ReturnType> findByText( ...args: Parameters>> ): ReturnType> findAllByText( ...args: Parameters>> ): ReturnType> getByAltText( ...args: Parameters>> ): ReturnType> getAllByAltText( ...args: Parameters>> ): ReturnType> queryByAltText( ...args: Parameters>> ): ReturnType> queryAllByAltText( ...args: Parameters>> ): ReturnType> findByAltText( ...args: Parameters>> ): ReturnType> findAllByAltText( ...args: Parameters>> ): ReturnType> getByTitle( ...args: Parameters>> ): ReturnType> getAllByTitle( ...args: Parameters>> ): ReturnType> queryByTitle( ...args: Parameters>> ): ReturnType> queryAllByTitle( ...args: Parameters>> ): ReturnType> findByTitle( ...args: Parameters>> ): ReturnType> findAllByTitle( ...args: Parameters>> ): ReturnType> getByDisplayValue( ...args: Parameters>> ): ReturnType> getAllByDisplayValue( ...args: Parameters>> ): ReturnType> queryByDisplayValue( ...args: Parameters>> ): ReturnType> queryAllByDisplayValue( ...args: Parameters>> ): ReturnType> findByDisplayValue( ...args: Parameters>> ): ReturnType> findAllByDisplayValue( ...args: Parameters>> ): ReturnType> getByRole( ...args: Parameters>> ): ReturnType> getAllByRole( ...args: Parameters>> ): ReturnType> queryByRole( ...args: Parameters>> ): ReturnType> queryAllByRole( ...args: Parameters>> ): ReturnType> findByRole( ...args: Parameters>> ): ReturnType> findAllByRole( ...args: Parameters>> ): ReturnType> getByTestId( ...args: Parameters>> ): ReturnType> getAllByTestId( ...args: Parameters>> ): ReturnType> queryByTestId( ...args: Parameters>> ): ReturnType> queryAllByTestId( ...args: Parameters>> ): ReturnType> findByTestId( ...args: Parameters>> ): ReturnType> findAllByTestId( ...args: Parameters>> ): ReturnType> } & { [P in keyof Q]: BoundFunction } : { [P in keyof Q]: BoundFunction } type Query = ( container: HTMLElement, ...args: any[] ) => | Error | HTMLElement | HTMLElement[] | Promise | Promise | null interface Queries$1 { [T: string]: Query } declare function getQueriesForElement$1< QueriesToBind extends Queries$1 = typeof queries$1, // Extra type parameter required for reassignment. T extends QueriesToBind = QueriesToBind, >(element: HTMLElement, queriesToBind?: T): BoundFunctions /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ declare type Colors = { comment: { close: string; open: string; }; content: { close: string; open: string; }; prop: { close: string; open: string; }; tag: { close: string; open: string; }; value: { close: string; open: string; }; }; declare type Indent = (arg0: string) => string; declare type Refs = Array; declare type Print = (arg0: unknown) => string; declare type Theme = { comment: string; content: string; prop: string; tag: string; value: string; }; declare type ThemeReceived = { comment?: string; content?: string; prop?: string; tag?: string; value?: string; }; declare type CompareKeys = ((a: string, b: string) => number) | undefined; declare type Options = { callToJSON: boolean; compareKeys: CompareKeys; escapeRegex: boolean; escapeString: boolean; highlight: boolean; indent: number; maxDepth: number; min: boolean; plugins: Plugins; printBasicPrototype: boolean; printFunctionName: boolean; theme: Theme; }; interface PrettyFormatOptions { callToJSON?: boolean; compareKeys?: CompareKeys; escapeRegex?: boolean; escapeString?: boolean; highlight?: boolean; indent?: number; maxDepth?: number; min?: boolean; plugins?: Plugins; printBasicPrototype?: boolean; printFunctionName?: boolean; theme?: ThemeReceived; } declare type OptionsReceived = PrettyFormatOptions; declare type Config$1 = { callToJSON: boolean; compareKeys: CompareKeys; colors: Colors; escapeRegex: boolean; escapeString: boolean; indent: string; maxDepth: number; min: boolean; plugins: Plugins; printBasicPrototype: boolean; printFunctionName: boolean; spacingInner: string; spacingOuter: string; }; declare type Printer = (val: unknown, config: Config$1, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string; declare type Test = (arg0: any) => boolean; declare type NewPlugin = { serialize: (val: any, config: Config$1, indentation: string, depth: number, refs: Refs, printer: Printer) => string; test: Test; }; declare type PluginOptions = { edgeSpacing: string; min: boolean; spacing: string; }; declare type OldPlugin = { print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string; test: Test; }; declare type Plugin = NewPlugin | OldPlugin; declare type Plugins = Array; /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ declare const DEFAULT_OPTIONS: Options; /** * Returns a presentation string of your `val` object * @param val any potential JavaScript object * @param options Custom settings */ declare function format(val: unknown, options?: OptionsReceived): string; declare const plugins: { AsymmetricMatcher: NewPlugin; ConvertAnsi: NewPlugin; DOMCollection: NewPlugin; DOMElement: NewPlugin; Immutable: NewPlugin; ReactElement: NewPlugin; ReactTestComponent: NewPlugin; }; type index_d_Colors = Colors; type index_d_CompareKeys = CompareKeys; declare const index_d_DEFAULT_OPTIONS: typeof DEFAULT_OPTIONS; type index_d_NewPlugin = NewPlugin; type index_d_OldPlugin = OldPlugin; type index_d_Options = Options; type index_d_OptionsReceived = OptionsReceived; type index_d_Plugin = Plugin; type index_d_Plugins = Plugins; type index_d_PrettyFormatOptions = PrettyFormatOptions; type index_d_Printer = Printer; type index_d_Refs = Refs; type index_d_Theme = Theme; declare const index_d_format: typeof format; declare const index_d_plugins: typeof plugins; declare namespace index_d { 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 }; } type Screen = BoundFunctions & { /** * Convenience function for `pretty-dom` which also allows an array * of elements */ debug: ( element?: Array | Element | HTMLDocument, maxLength?: number, options?: OptionsReceived, ) => void /** * Convenience function for `Testing Playground` which logs and returns the URL that * can be opened in a browser */ logTestingPlaygroundURL: (element?: Element | HTMLDocument) => string } declare function waitForElementToBeRemoved$1( callback: T | (() => T), options?: waitForOptions, ): Promise declare function getNodeText$1(node: HTMLElement): string type EventType = | 'copy' | 'cut' | 'paste' | 'compositionEnd' | 'compositionStart' | 'compositionUpdate' | 'keyDown' | 'keyPress' | 'keyUp' | 'focus' | 'blur' | 'focusIn' | 'focusOut' | 'change' | 'input' | 'invalid' | 'submit' | 'reset' | 'click' | 'contextMenu' | 'dblClick' | 'drag' | 'dragEnd' | 'dragEnter' | 'dragExit' | 'dragLeave' | 'dragOver' | 'dragStart' | 'drop' | 'mouseDown' | 'mouseEnter' | 'mouseLeave' | 'mouseMove' | 'mouseOut' | 'mouseOver' | 'mouseUp' | 'popState' | 'select' | 'touchCancel' | 'touchEnd' | 'touchMove' | 'touchStart' | 'resize' | 'scroll' | 'wheel' | 'abort' | 'canPlay' | 'canPlayThrough' | 'durationChange' | 'emptied' | 'encrypted' | 'ended' | 'loadedData' | 'loadedMetadata' | 'loadStart' | 'pause' | 'play' | 'playing' | 'progress' | 'rateChange' | 'seeked' | 'seeking' | 'stalled' | 'suspend' | 'timeUpdate' | 'volumeChange' | 'waiting' | 'load' | 'error' | 'animationStart' | 'animationEnd' | 'animationIteration' | 'transitionCancel' | 'transitionEnd' | 'transitionRun' | 'transitionStart' | 'doubleClick' | 'pointerOver' | 'pointerEnter' | 'pointerDown' | 'pointerMove' | 'pointerUp' | 'pointerCancel' | 'pointerOut' | 'pointerLeave' | 'gotPointerCapture' | 'lostPointerCapture' | 'offline' | 'online' | 'pageHide' | 'pageShow' type FireObject = { [K in EventType]: ( element: Document | Element | Window | Node, options?: {}, ) => boolean } type CreateFunction = ( eventName: string, node: Document | Element | Window | Node, init?: {}, options?: {EventType?: string; defaultInit?: {}}, ) => Event type CreateObject = { [K in EventType]: ( element: Document | Element | Window | Node, options?: {}, ) => Event } interface PrettyDOMOptions extends OptionsReceived { /** * Given a `Node` return `false` if you wish to ignore that node in the output. * By default, ignores `