import { EngineAIWebComponentElement } from '../component'; type OptionsEventAction = { type: 'options'; data: Record; }; type LoginEventAction = { type: 'login'; data: { token: string; }; }; type LogoutEventAction = { type: 'logout'; data?: never; }; type LocationChangeEventAction = { type: 'location-change'; data: { path: string; }; }; /** * listens to a response of a requested url, with the new url as part of the payload */ type EmbeddedAppUrlResponse = { type: `embedded-app-url-response:${string}`; data: { href: string; }; }; export type EngineAIWebComponentRemoteEventAction = OptionsEventAction | LocationChangeEventAction | LoginEventAction | LogoutEventAction | EmbeddedAppUrlResponse; /** * manages the communication channel */ export declare class EngineAIWebComponentRemoteManager { private element; private abortController; private target; private queue; private observerCounters; constructor(element: EngineAIWebComponentElement); private handleObserve; private handleUnobserve; private shouldDispatchMessage; private tryFlushQueue; dispatch>(type: T, data: T extends EngineAIWebComponentRemoteEventAction['type'] ? Extract['data'] : unknown): void; dispatch(type: T, data: Extract['data']): void; connect(target: Window): void; disconnect(): void; destroy(): void; } export {};