| 19 | * This decoupling allows Tab system to work before Plugin system is ready. |
| 20 | */ |
| 21 | export interface IPluginResolver { |
| 22 | /** |
| 23 | * Get the React component for a plugin |
| 24 | * |
| 25 | * @param pluginId - Plugin identifier (e.g., '@ds/plugin-pdf-viewer') |
| 26 | * @returns React component or null if not found |
| 27 | */ |
| 28 | getPluginComponent( |
| 29 | pluginId: string |
| 30 | ): ComponentType<PluginComponentProps> | null; |
| 31 | |
| 32 | /** |
| 33 | * Get the default plugin ID for a MIME type |
| 34 | * |
| 35 | * @param mimeType - MIME type (e.g., 'application/pdf') |
| 36 | * @returns Plugin ID or null if no default handler |
| 37 | */ |
| 38 | getDefaultPluginForMimeType(mimeType: string): string | null; |
| 39 | |
| 40 | /** |
| 41 | * Check if a plugin is registered |
| 42 | * |
| 43 | * @param pluginId - Plugin identifier |
| 44 | * @returns true if plugin is registered |
| 45 | */ |
| 46 | isPluginRegistered(pluginId: string): boolean; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Default MIME type to Plugin mapping |
nothing calls this directly
no outgoing calls
no test coverage detected