import { OkxEventListeners } from './events'; import { EthereumProvider, IWidgetConfig, IWidgetParams, ProviderType } from './types'; /** * Callback function signature for updating the Okx Swap Widget. */ export interface OkxSwapWidgetHandler { updateParams: (params: IWidgetParams) => void; updateListeners: (newListeners?: OkxEventListeners) => void; updateProvider: (newProvider: EthereumProvider, providerType: ProviderType) => void; destroy: () => void; iframeWindow: Window; } /** * Generates and injects a Okx Swap Widget into the provided container. * @param container - The HTML element to inject the widget into. * @param params - Parameters for configuring the widget. * @returns A callback function to update the widget with new settings. */ export declare function createOkxSwapWidget(container: HTMLElement, config: IWidgetConfig): OkxSwapWidgetHandler;