import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; export { ElementWrapper }; import CodeViewWrapper from './code-view'; export { CodeViewWrapper }; declare module '@cloudscape-design/test-utils-core/dist/dom' { interface ElementWrapper { /** * Returns the wrapper of the first CodeView that matches the specified CSS selector. * If no CSS selector is specified, returns the wrapper of the first CodeView. * If no matching CodeView is found, returns `null`. * * @param {string} [selector] CSS Selector * @returns {CodeViewWrapper | null} */ findCodeView(selector?: string): CodeViewWrapper | null; /** * Returns an array of CodeView wrapper that matches the specified CSS selector. * If no CSS selector is specified, returns all of the CodeViews inside the current wrapper. * If no matching CodeView is found, returns an empty array. * * @param {string} [selector] CSS Selector * @returns {Array} */ findAllCodeViews(selector?: string): Array; /** * Returns the wrapper of the closest parent CodeView for the current element, * or the element itself if it is an instance of CodeView. * If no CodeView is found, returns `null`. * * @returns {CodeViewWrapper | null} */ findClosestCodeView(): CodeViewWrapper | null; } } export default function wrapper(root?: Element): ElementWrapper;