in src/plugin/types.ts [119:128]
readonly mount: () => void
readonly unmount: () => void
readonly updateContext: (context: PluginContext) => void
// there's no better way to type a generic React component
// eslint-disable-next-line @typescript-eslint/no-explicit-any
replaceContent(content: string | HTMLElement | React.ComponentType<any>): void
registerEventHandler(element: HTMLElement, event: string, callback: () => unknown): void
}
export interface PluginRegistry {