/** * PluginServiceV3 - Handles all V2 API endpoints for plugin management * Uses /api/public/v1/plugins/v2/* endpoints */ export declare class PluginServiceV3 { private verbose; private baseUrl; private apiKey; constructor(apiUrl: string, apiKey: string, verbose?: boolean); private log; /** * Make a POST request to the V2 API */ private makePostRequest; /** * Make a GET request to the V2 API */ private makeGetRequest; /** * List all plugins for a store * POST /api/public/v1/plugins/v2/list */ listPlugins(options: { storeId?: string; includeInactive?: boolean; search?: string; }): Promise<{ success: boolean; plugins?: any[]; error?: string; }>; /** * Get deployment details * POST /api/public/v1/plugins/v2/deployment/details */ getDeploymentDetails(options: { deploymentId: string; storeId: string; }): Promise<{ success: boolean; deployment?: any; error?: string; }>; /** * List mount points * POST /api/public/v1/plugins/v2/mount-points */ listMountPoints(options: { storeId: string; }): Promise<{ success: boolean; mountPoints?: any[]; error?: string; }>; /** * List instances * POST /api/public/v1/plugins/v2/instances */ listInstances(options: { storeId: string; deploymentId?: string; }): Promise<{ success: boolean; instances?: any[]; error?: string; }>; /** * Mount a plugin instance * POST /api/public/v1/plugins/v2/mount */ mountPlugin(options: { deploymentId: string; deploymentInstanceId?: string; storeId: string; hostname?: string; alias?: string; customDomain?: string; basePath?: string; matcher?: string; excluder?: string; priority?: number; config?: Record; }): Promise<{ success: boolean; result?: any; error?: string; }>; /** * Unmount a plugin instance * POST /api/public/v1/plugins/v2/unmount */ unmountPlugin(options: { instanceId: string; storeId: string; routeId?: string; }): Promise<{ success: boolean; result?: any; error?: string; }>; /** * Deploy plugin from URL * POST /api/public/v1/plugins/v2/deploy-from-url */ deployPluginFromUrl(options: { url: string; pluginId: string; version: string; name: string; description?: string; storeId: string; mode: 'iframe-bridge' | 'direct-mode'; config?: Record; pages?: any[]; landingImgUrl?: string; public?: boolean; overwrite?: boolean; }): Promise<{ success: boolean; deployment?: any; error?: string; isVersionConflict?: boolean; }>; /** * Delete a plugin * POST /api/public/v1/plugins/v2/delete */ deletePlugin(options: { pluginId: string; }): Promise<{ success: boolean; error?: string; }>; /** * Delete a deployment * POST /api/public/v1/plugins/v2/deployment/delete */ deleteDeployment(options: { deploymentId: string; }): Promise<{ success: boolean; error?: string; }>; }