import { AnyHTMLElement, SpecPage } from '../../../../stencil-public-runtime';
/**
 * Returns the shadow root by casting it to AnyHTMLElement to be able to use
 * DOM functions such as 'getElementsByTagName'. I have no idea why ShadowRoot in lib.dom.d.ts
 * doesn't have this on ShadowRoot definition.
 *
 * @param page
 */
export declare function getShadowRoot(page: SpecPage): AnyHTMLElement;
/**
 * Fix around getElementsByTagName not returning a proper HTMLCollectionOf object.
 * HTMLCollectionOf should have a function 'item(index: number): T | null;' which
 * returns the item at index but apparently it's undefined.
 *
 * @param parent
 * @param tag
 */
export declare function getFirstByTagName<T extends Element>(parent: AnyHTMLElement, tag: string): T;
/**
 * Fix around getElementsByClassName not returning a proper HTMLCollectionOf object.
 * HTMLCollectionOf should have a function 'item(index: number): T | null;' which
 * returns the item at index but apparently it's undefined.
 *
 * @param parent
 * @param tag
 */
export declare function getFirstByClassName<T extends Element>(parent: AnyHTMLElement, tag: string): T;
