import { LitElement } from 'lit'; import { EngineAIWebComponentEventHandlers, EngineAIWebComponentEventMap } from './events'; declare const TAG_NAME = "engineai-web-component"; declare global { interface HTMLElementTagNameMap { [TAG_NAME]: EngineAIWebComponentElement; } } export interface EngineAIWebComponentAttributes { src: string; resizable?: boolean; options?: Record; } export declare class EngineAIWebComponentElement extends LitElement implements EngineAIWebComponentAttributes, EngineAIWebComponentEventHandlers { static readonly tagName = "engineai-web-component"; static readonly shadowRootOptions: ShadowRootInit; static readonly styles: import('lit').CSSResult; /** * @param property - camel case property * @returns attribute name using kebab case (hyphen) */ static attributeNameForProperty(property: string): string; src: string; options: EngineAIWebComponentAttributes['options']; readonly resizable: boolean; private authenticated; set token(value: string | null); onStateChange: EngineAIWebComponentEventHandlers['onStateChange']; readonly instanceId: string; private remoteManager; private iframe?; constructor(); private loginRequestHandler; private contentHeightChangeHandler; /** * dispatch event to the underlying communication channel */ dispatch: { >(type: T, data: T extends import('./remote-manager').EngineAIWebComponentRemoteEventAction["type"] ? Extract["data"] : unknown): void; (type: T, data: Extract["data"]): void; }; updated(changedProperties: Map): void; private onSrcUpdate; private onOptionsUpdate; disconnectedCallback(): void; render(): import('lit').TemplateResult<1> | null; /** * ref callback called with element on mount or null on unmount */ private iframeRefCallback; /** * Overrides for HTMLElement EventTarget interface */ addEventListener(type: K, listener: (this: EngineAIWebComponentElement, ev: EngineAIWebComponentEventMap[K]) => void, options?: boolean | AddEventListenerOptions | undefined): void; removeEventListener(type: K, listener: (this: EngineAIWebComponentElement, ev: EngineAIWebComponentEventMap[K]) => void, options?: boolean | EventListenerOptions | undefined): void; dispatchEvent(ev: EngineAIWebComponentEventMap[K]): boolean; } export {};