import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; export { ElementWrapper }; import AvatarWrapper from './avatar'; import ChatBubbleWrapper from './chat-bubble'; import LoadingBarWrapper from './loading-bar'; import SupportPromptGroupWrapper from './support-prompt-group'; export { AvatarWrapper }; export { ChatBubbleWrapper }; export { LoadingBarWrapper }; export { SupportPromptGroupWrapper }; declare module '@cloudscape-design/test-utils-core/dist/dom' { interface ElementWrapper { /** * Returns the wrapper of the first Avatar that matches the specified CSS selector. * If no CSS selector is specified, returns the wrapper of the first Avatar. * If no matching Avatar is found, returns `null`. * * @param {string} [selector] CSS Selector * @returns {AvatarWrapper | null} */ findAvatar(selector?: string): AvatarWrapper | null; /** * Returns an array of Avatar wrapper that matches the specified CSS selector. * If no CSS selector is specified, returns all of the Avatars inside the current wrapper. * If no matching Avatar is found, returns an empty array. * * @param {string} [selector] CSS Selector * @returns {Array} */ findAllAvatars(selector?: string): Array; /** * Returns the wrapper of the closest parent Avatar for the current element, * or the element itself if it is an instance of Avatar. * If no Avatar is found, returns `null`. * * @returns {AvatarWrapper | null} */ findClosestAvatar(): AvatarWrapper | null; /** * Returns the wrapper of the first ChatBubble that matches the specified CSS selector. * If no CSS selector is specified, returns the wrapper of the first ChatBubble. * If no matching ChatBubble is found, returns `null`. * * @param {string} [selector] CSS Selector * @returns {ChatBubbleWrapper | null} */ findChatBubble(selector?: string): ChatBubbleWrapper | null; /** * Returns an array of ChatBubble wrapper that matches the specified CSS selector. * If no CSS selector is specified, returns all of the ChatBubbles inside the current wrapper. * If no matching ChatBubble is found, returns an empty array. * * @param {string} [selector] CSS Selector * @returns {Array} */ findAllChatBubbles(selector?: string): Array; /** * Returns the wrapper of the closest parent ChatBubble for the current element, * or the element itself if it is an instance of ChatBubble. * If no ChatBubble is found, returns `null`. * * @returns {ChatBubbleWrapper | null} */ findClosestChatBubble(): ChatBubbleWrapper | null; /** * Returns the wrapper of the first LoadingBar that matches the specified CSS selector. * If no CSS selector is specified, returns the wrapper of the first LoadingBar. * If no matching LoadingBar is found, returns `null`. * * @param {string} [selector] CSS Selector * @returns {LoadingBarWrapper | null} */ findLoadingBar(selector?: string): LoadingBarWrapper | null; /** * Returns an array of LoadingBar wrapper that matches the specified CSS selector. * If no CSS selector is specified, returns all of the LoadingBars inside the current wrapper. * If no matching LoadingBar is found, returns an empty array. * * @param {string} [selector] CSS Selector * @returns {Array} */ findAllLoadingBars(selector?: string): Array; /** * Returns the wrapper of the closest parent LoadingBar for the current element, * or the element itself if it is an instance of LoadingBar. * If no LoadingBar is found, returns `null`. * * @returns {LoadingBarWrapper | null} */ findClosestLoadingBar(): LoadingBarWrapper | null; /** * Returns the wrapper of the first SupportPromptGroup that matches the specified CSS selector. * If no CSS selector is specified, returns the wrapper of the first SupportPromptGroup. * If no matching SupportPromptGroup is found, returns `null`. * * @param {string} [selector] CSS Selector * @returns {SupportPromptGroupWrapper | null} */ findSupportPromptGroup(selector?: string): SupportPromptGroupWrapper | null; /** * Returns an array of SupportPromptGroup wrapper that matches the specified CSS selector. * If no CSS selector is specified, returns all of the SupportPromptGroups inside the current wrapper. * If no matching SupportPromptGroup is found, returns an empty array. * * @param {string} [selector] CSS Selector * @returns {Array} */ findAllSupportPromptGroups(selector?: string): Array; /** * Returns the wrapper of the closest parent SupportPromptGroup for the current element, * or the element itself if it is an instance of SupportPromptGroup. * If no SupportPromptGroup is found, returns `null`. * * @returns {SupportPromptGroupWrapper | null} */ findClosestSupportPromptGroup(): SupportPromptGroupWrapper | null; } } export default function wrapper(root?: Element): ElementWrapper;