/** * * @param element * @param callback * @returns */ declare function watchTextChange(element: HTMLElement, callback: (newText: string, oldText: string) => void): (() => void) | undefined; /** * * @param element * @param callback * @param attrs * @returns */ declare function watchAttrChange(element: HTMLElement | null | undefined, callback: (attrName: string, newValue: string | null, oldValue: string | null) => void, attrs?: string[]): (() => void) | undefined; declare function watchElementChange(element: Element | null, options?: { onText?: (newText: string, oldText: string) => void; onAttr?: (name: string, newValue: string | null, oldValue: string | null) => void; attrFilter?: string[] | null; }): (() => void) | undefined; declare function waitForElement(selector: string, timeout?: number): Promise; declare const _default: { watchTextChange: typeof watchTextChange; watchAttrChange: typeof watchAttrChange; watchElementChange: typeof watchElementChange; waitForElement: typeof waitForElement; }; export default _default;