/**
* Builds a widget's fetchWidgetPagesMixin. Every widget shares identical logic and differs only by
* its published base directory (the widget type/name under which its screens live in S3), so each
* widget calls this with its own dir:
*
* export const fetchWidgetPagesMixin = createFetchWidgetPagesMixin('user-profile-widget');
*
* `fetchWidgetPage` fetches `//`, transparently preferring a localized
* `-.html` variant when the widget publishes that locale (config.json targetLocales),
* and falling back to the default page otherwise.
*/
export declare const createFetchWidgetPagesMixin: (widgetPagesBaseDir: string) => (superclass: T) => {
new (...params: any[]): {
init(): Promise;
fetchWidgetPage(filename: string): Promise;
"__#19252@#tryFetchLocalized"(filename: string): Promise;
readonly locale: string;
readonly localeCandidates: string[];
firstAvailableLocale(availableLocales: string[]): string;
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
inert: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
popover: string;
spellcheck: boolean;
title: string;
translate: boolean;
attachInternals(): ElementInternals;
click(): void;
hidePopover(): void;
showPopover(): void;
togglePopover(force?: boolean): boolean;
addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
readonly attributes: NamedNodeMap;
readonly classList: DOMTokenList;
className: string;
readonly clientHeight: number;
readonly clientLeft: number;
readonly clientTop: number;
readonly clientWidth: number;
id: string;
readonly localName: string;
readonly namespaceURI: string;
onfullscreenchange: (this: Element, ev: Event) => any;
onfullscreenerror: (this: Element, ev: Event) => any;
outerHTML: string;
readonly ownerDocument: Document;
readonly part: DOMTokenList;
readonly prefix: string;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
readonly shadowRoot: ShadowRoot;
slot: string;
readonly tagName: string;
attachShadow(init: ShadowRootInit): ShadowRoot;
checkVisibility(options?: CheckVisibilityOptions): boolean;
closest(selector: K_2): HTMLElementTagNameMap[K_2];
closest(selector: K_3): SVGElementTagNameMap[K_3];
closest(selector: K_4): MathMLElementTagNameMap[K_4];
closest(selectors: string): E;
computedStyleMap(): StylePropertyMapReadOnly;
getAttribute(qualifiedName: string): string;
getAttributeNS(namespace: string, localName: string): string;
getAttributeNames(): string[];
getAttributeNode(qualifiedName: string): Attr;
getAttributeNodeNS(namespace: string, localName: string): Attr;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
getElementsByClassName(classNames: string): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K_5): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K_6): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K_7): HTMLCollectionOf;
getElementsByTagName(qualifiedName: K_8): HTMLCollectionOf;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf;
hasAttribute(qualifiedName: string): boolean;
hasAttributeNS(namespace: string, localName: string): boolean;
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
insertAdjacentElement(where: InsertPosition, element: Element): Element;
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentText(where: InsertPosition, data: string): void;
matches(selectors: string): boolean;
releasePointerCapture(pointerId: number): void;
removeAttribute(qualifiedName: string): void;
removeAttributeNS(namespace: string, localName: string): void;
removeAttributeNode(attr: Attr): Attr;
requestFullscreen(options?: FullscreenOptions): Promise;
requestPointerLock(): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
setAttribute(qualifiedName: string, value: string): void;
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
setAttributeNode(attr: Attr): Attr;
setAttributeNodeNS(attr: Attr): Attr;
setPointerCapture(pointerId: number): void;
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
webkitMatchesSelector(selectors: string): boolean;
readonly baseURI: string;
readonly childNodes: NodeListOf;
readonly firstChild: ChildNode;
readonly isConnected: boolean;
readonly lastChild: ChildNode;
readonly nextSibling: ChildNode;
readonly nodeName: string;
readonly nodeType: number;
nodeValue: string;
readonly parentElement: HTMLElement;
readonly parentNode: ParentNode;
readonly previousSibling: ChildNode;
textContent: string;
appendChild(node: T_1): T_1;
cloneNode(deep?: boolean): Node;
compareDocumentPosition(other: Node): number;
contains(other: Node): boolean;
getRootNode(options?: GetRootNodeOptions): Node;
hasChildNodes(): boolean;
insertBefore(node: T_2, child: Node): T_2;
isDefaultNamespace(namespace: string): boolean;
isEqualNode(otherNode: Node): boolean;
isSameNode(otherNode: Node): boolean;
lookupNamespaceURI(prefix: string): string;
lookupPrefix(namespace: string): string;
normalize(): void;
removeChild(child: T_3): T_3;
replaceChild(node: Node, child: T_4): T_4;
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
readonly TEXT_NODE: 3;
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
readonly PROCESSING_INSTRUCTION_NODE: 7;
readonly COMMENT_NODE: 8;
readonly DOCUMENT_NODE: 9;
readonly DOCUMENT_TYPE_NODE: 10;
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
readonly DOCUMENT_POSITION_PRECEDING: 2;
readonly DOCUMENT_POSITION_FOLLOWING: 4;
readonly DOCUMENT_POSITION_CONTAINS: 8;
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
dispatchEvent(event: Event): boolean;
ariaAtomic: string;
ariaAutoComplete: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
ariaColIndex: string;
ariaColSpan: string;
ariaCurrent: string;
ariaDescription: string;
ariaDisabled: string;
ariaExpanded: string;
ariaHasPopup: string;
ariaHidden: string;
ariaInvalid: string;
ariaKeyShortcuts: string;
ariaLabel: string;
ariaLevel: string;
ariaLive: string;
ariaModal: string;
ariaMultiLine: string;
ariaMultiSelectable: string;
ariaOrientation: string;
ariaPlaceholder: string;
ariaPosInSet: string;
ariaPressed: string;
ariaReadOnly: string;
ariaRequired: string;
ariaRoleDescription: string;
ariaRowCount: string;
ariaRowIndex: string;
ariaRowSpan: string;
ariaSelected: string;
ariaSetSize: string;
ariaSort: string;
ariaValueMax: string;
ariaValueMin: string;
ariaValueNow: string;
ariaValueText: string;
role: string;
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
getAnimations(options?: GetAnimationsOptions): Animation[];
after(...nodes: (string | Node)[]): void;
before(...nodes: (string | Node)[]): void;
remove(): void;
replaceWith(...nodes: (string | Node)[]): void;
innerHTML: string;
readonly nextElementSibling: Element;
readonly previousElementSibling: Element;
readonly childElementCount: number;
readonly children: HTMLCollection;
readonly firstElementChild: Element;
readonly lastElementChild: Element;
append(...nodes: (string | Node)[]): void;
prepend(...nodes: (string | Node)[]): void;
querySelector(selectors: K_9): HTMLElementTagNameMap[K_9];
querySelector(selectors: K_10): SVGElementTagNameMap[K_10];
querySelector(selectors: K_11): MathMLElementTagNameMap[K_11];
querySelector(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
querySelector(selectors: string): E_1;
querySelectorAll(selectors: K_13): NodeListOf;
querySelectorAll(selectors: K_14): NodeListOf;
querySelectorAll(selectors: K_15): NodeListOf;
querySelectorAll(selectors: K_16): NodeListOf;
querySelectorAll(selectors: string): NodeListOf;
replaceChildren(...nodes: (string | Node)[]): void;
readonly assignedSlot: HTMLSlotElement;
readonly attributeStyleMap: StylePropertyMap;
readonly style: CSSStyleDeclaration;
contentEditable: string;
enterKeyHint: string;
inputMode: string;
readonly isContentEditable: boolean;
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
onchange: (this: GlobalEventHandlers, ev: Event) => any;
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onclose: (this: GlobalEventHandlers, ev: Event) => any;
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
onended: (this: GlobalEventHandlers, ev: Event) => any;
onerror: OnErrorEventHandlerNonNull;
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
oninput: (this: GlobalEventHandlers, ev: Event) => any;
oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
onload: (this: GlobalEventHandlers, ev: Event) => any;
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
onpause: (this: GlobalEventHandlers, ev: Event) => any;
onplay: (this: GlobalEventHandlers, ev: Event) => any;
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any;
onratechange: (this: GlobalEventHandlers, ev: Event) => any;
onreset: (this: GlobalEventHandlers, ev: Event) => any;
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
onselect: (this: GlobalEventHandlers, ev: Event) => any;
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
autofocus: boolean;
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
getWidgetConfig(): Promise;
readonly widgetId: string;
"__#19238@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
"__#19237@#observeMappings": {} & {} & {} & {} & {};
observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
observeAttributes: ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
"__#19236@#isInit": boolean;
"__#19235@#logger": import("../loggerMixin").Logger;
"__#19235@#wrapLogger": ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger) & ((logger: Partial) => import("../loggerMixin").Logger);
get logger(): import("../loggerMixin").Logger;
set logger(logger: Partial);
onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
readonly config: Promise;
"__#19241@#configCacheClear"(): void;
"__#19241@#_configResource": Promise;
"__#19241@#fetchConfig": () => Promise;
"__#19240@#callbacks": Map void>;
onReset(sectionId: string, callback: () => void | Promise): () => void;
reset(...sectionIds: string[]): Promise;
"__#19239@#lastBaseUrl"?: string;
"__#19239@#workingBaseUrl"?: string;
"__#19239@#failedUrls": Set;
"__#19239@#getResourceUrls": ((filename: string) => (URL & {
baseUrl: string;
}) | (URL & {
baseUrl: string;
})[]) & ((filename: string) => (URL & {
baseUrl: string;
}) | (URL & {
baseUrl: string;
})[]);
"__#19239@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
baseUrl: string;
}) & ((filename: string, baseUrl: string) => URL & {
baseUrl: string;
});
fetchStaticResource: ((filename: string, format: F) => Promise<{
body: F extends "json" ? Record : string;
headers: Record;
}>) & ((filename: string, format: F_1) => Promise<{
body: F_1 extends "json" ? Record : string;
headers: Record;
}>);
readonly baseStaticUrl: string;
readonly baseUrl: string;
readonly projectId: string;
};
} & T;