import { type IRefreshMessageData, type IRefreshMessageMetadata, type IUpdateMessageData } from "./lib/IFrameCommunicatorTypes"; import { type KSLPublicConfiguration } from "./utils/configuration"; import { type Callback, type EventHandler } from "./utils/events"; export declare enum KontentSmartLinkEvent { Refresh = "refresh", Update = "update" } export type KontentSmartLinkEventMap = Readonly<{ [KontentSmartLinkEvent.Refresh]: EventHandler; [KontentSmartLinkEvent.Update]: EventHandler; }>; declare class KontentSmartLinkSDK { private configuration; private readonly iframeCommunicator; private readonly domSmartLinkManager; private events; private queryPresenceIntervalCleanup; constructor(configuration?: Partial); private static getSettingsStorage; initialize: () => Promise; destroy: () => void; updateConfiguration: (configuration: Partial) => void; on: (event: TEvent, handler: KontentSmartLinkEventMap[TEvent]) => void; off: (event: TEvent, handler: KontentSmartLinkEventMap[TEvent]) => void; private initializeIFrameCommunication; private handleStatusMessage; private handleRefreshMessage; private handleUpdateMessage; private handlePreviewIFrameCurrentUrlRequestMessage; } export default KontentSmartLinkSDK;