/** * @packageDocumentation * The Webcomponent SDK is tailored for using Myop components packaged as separate bundles and exposed as web components.
* Developers importing this SDK can leverage APIs and utilities specifically crafted to support the lifecycle management and communication patterns required for web components within the Myop architecture.
* This SDK promotes reusability and encapsulation, enabling developers to build modular, self-contained components that can be seamlessly integrated into the host application's DOM structure. * * * Once loaded the `RootSDK`, you can load the `IframeSDK` * ```js * const {WebComponentSDK} = (await window.myop.rootSDK.getWebcomponentModule()); * ``` * or * ```ts * import {getWebcomponentModule} from '@myop/sdk'; * const {WebComponentSDK} = (await getWebcomponentModule()); * ``` * or * ```ts * import {WebComponentSDK} from '@myop/sdk/webcomponent'; * ``` * */ import { BaseMyopSDK } from "../common"; import { BaseWebComponentMessageHandler } from "./messageHandlers/BaseWebComponentMessageHandler"; import { MyopBindMessage, MyopBindReplayMessage } from "../messages"; /** * The Webcomponent SDK is tailored for using Myop components packaged as separate bundles and exposed as web components.
* Developers importing this SDK can leverage APIs and utilities specifically crafted to support the lifecycle management and communication patterns required for web components within the Myop architecture.
* This SDK promotes reusability and encapsulation, enabling developers to build modular, self-contained components that can be seamlessly integrated into the host application's DOM structure. * * * Once loaded the `Root SDK`, you can load the `IframeSDK` * ```js * const {WebComponentSDK} = (await window.myop.rootSDK.getWebcomponentModule()); * ``` * or * ```ts * import {getWebcomponentModule} from '@myop/sdk'; * const {WebComponentSDK} = (await getWebcomponentModule()); * ``` * */ export declare class WebComponentSDK extends BaseMyopSDK { alwaysPassEnvelopesToHost: boolean; connectedCallback: (container: HTMLElement, shadow: ShadowRoot) => void; messageToHost: (message: MyopBindReplayMessage, replayTo?: MyopBindMessage) => void; supportedHandlers: BaseWebComponentMessageHandler[]; init: () => void; }