customerio-gist-web
Version:
Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io
14 lines (13 loc) • 809 B
TypeScript
export declare function findElement(selector: string): HTMLElement | null;
/**
* Resolves with the element once it appears in the DOM, or null after the
* timeout. Used for tour continuations: after a cross-page hop the queue check
* usually beats the app rendering a tooltip/inline anchor, so a one-shot
* lookup would fail on exactly the step that just navigated (INAPP-14575).
*/
export declare function waitForElement(selector: string, timeoutMs: number): Promise<HTMLElement | null>;
export declare function el<K extends keyof HTMLElementTagNameMap>(tag: K, attrs?: Partial<HTMLElementTagNameMap[K]> & {
[k: string]: unknown;
}): HTMLElementTagNameMap[K];
export declare function injectStylesheet(id: string, css: string): void;
export declare function appendToBody(element: HTMLElement): void;