1 | import { Action } from "./core/types";
|
2 | export type DispatchOptions<T extends CustomEvent> = {
|
3 | target: EventTarget;
|
4 | cancelable: boolean;
|
5 | detail: T["detail"];
|
6 | };
|
7 | export declare function activateScriptElement(element: HTMLScriptElement): HTMLScriptElement;
|
8 | export declare function createDocumentFragment(html: string): DocumentFragment;
|
9 | export declare function dispatch<T extends CustomEvent>(eventName: string, { target, cancelable, detail }?: Partial<DispatchOptions<T>>): CustomEvent<T["detail"]>;
|
10 | export declare function nextAnimationFrame(): Promise<void>;
|
11 | export declare function nextEventLoopTick(): Promise<void>;
|
12 | export declare function nextMicrotask(): Promise<void>;
|
13 | export declare function parseHTMLDocument(html?: string): Document;
|
14 | export declare function unindent(strings: TemplateStringsArray, ...values: any[]): string;
|
15 | export declare function uuid(): string;
|
16 | export declare function getAttribute(attributeName: string, ...elements: (Element | undefined)[]): string | null;
|
17 | export declare function hasAttribute(attributeName: string, ...elements: (Element | undefined)[]): boolean;
|
18 | export declare function markAsBusy(...elements: Element[]): void;
|
19 | export declare function clearBusyState(...elements: Element[]): void;
|
20 | export declare function waitForLoad(element: HTMLLinkElement, timeoutInMilliseconds?: number): Promise<void>;
|
21 | export declare function getHistoryMethodForAction(action: Action): (data: any, unused: string, url?: string | URL | null | undefined) => void;
|
22 | export declare function isAction(action: any): action is Action;
|
23 | export declare function getVisitAction(...elements: (Element | undefined)[]): Action | null;
|
24 | export declare function getMetaElement(name: string): HTMLMetaElement | null;
|
25 | export declare function getMetaContent(name: string): string | null;
|
26 | export declare function setMetaContent(name: string, content: string): HTMLMetaElement;
|
27 | export declare function findClosestRecursively<E extends Element>(element: Element | null, selector: string): E | undefined;
|