import SocialShareButtons from './SocialShareButtons.cjs'; import type { SocialShareButtonsOptions } from './types.cjs'; export interface ShareButtonsController { /** A snapshot of the instances owned by this controller. */ readonly instances: SocialShareButtons[]; /** Mount/update failures from the most recent refresh, without stopping other widgets. */ readonly errors: { container: HTMLElement; cause: unknown; }[]; /** Mount added containers, update attributes, and release removed containers. */ refresh(): SocialShareButtons[]; /** Remove only this controller's widgets. Calling refresh afterwards is a no-op. */ destroy(): void; } type Defaults = Omit; /** * Initialize CMS/article widgets marked with data-share-buttons. * Imports have no side effects. Call refresh after adding/removing containers or * changing their presentation attributes; share-data attributes are always live. */ export declare function initShareButtons(root?: ParentNode, defaults?: Defaults): ShareButtonsController; export {};