import { IOConnectBrowser } from "@interopio/browser";

/**
 * Factory function that appends a widget component to the html body of your IOConnectBrowser-enabled app
 * The widget config typings are defined in @interopio/browser
 */
export type IOBrowserWidgetFactoryFunction = (io: any, config: any) => Promise<void>;

declare const IOBrowserWidgetFactory: IOBrowserWidgetFactoryFunction;

export type IOBrowserWidgetConfig = IOConnectBrowser.WidgetConfig & { rootElement: HTMLDivElement };