/** * Check if an element is scrollable * @param element * @returns True or false */ export declare const isScrollable: (element: Element) => boolean; /** * Finds the first child text node of an element * @param element The element to search into. */ export declare const findTextNode: (element: HTMLElement) => ChildNode | undefined; /** * Function to fetch the Document of a specified URL. * * @param url - The URL of the page. * @param slug - [optional] The slug of the page. * @returns */ export declare const fetchDocument: (url: string, slug?: string) => Promise; /** * Function to fetch the Elements of a specified URL. * * @param url - The URL of the page. * @param tagName - The tag name of the elements to fetch. If not provided, returns the whole page as a string. * @param asElement - [optional] If true, returns the element as an object. * @returns */ export declare const fetchElements: (url: URL, tagName?: string, asElement?: boolean) => Promise; /** * Fetch elements by attribute */ export declare const fetchElementsByAttribute: (url: URL, attribute: string) => Promise; /** * Checks if an element is visible * @param element */ export declare const isVisible: (element: HTMLElement) => boolean;