import type { FeedsConnectorParams, FeedsWidgetDescription } from '../../connectors/feeds/connectFeeds'; import type { Widget, WidgetFactory } from '../../types'; export type FeedsWidgetParams = { /** * CSS Selector or HTMLElement to insert the widget. */ container: string | HTMLElement; /** * Returns widgets for a given feed. Called once per feedID. * The container is a DOM element scoped to this feed. * Return `null` or `undefined` to render the feed container without widgets. */ widgets: (container: HTMLElement, feedID: string) => Array | null | undefined; }; export type FeedsWidget = WidgetFactory, FeedsWidgetParams & Pick>; declare const feeds: FeedsWidget; export default feeds;