/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-09-17. */ import { Request } from '../../http/request'; import { InstalledPlugin, PluginLogs, PluginParam, UploadPluginParam } from './types'; export * from './types'; export declare class PluginAPI extends Request { /** * Get the list of installed plugins. The list only includes running plugins when called by a * non-admin user. */ getPlugins(this: Request): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the logs of a plugin. */ getPluginLogs(this: Request, params: PluginParam): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Synchronously restart all plugins. * * First stop all running plugins. Then start all enabled plugins. */ restartAll(): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Synchronously stop and restart a plugin. * * If the plugin was previously disabled, it is enabled and started. */ restart(params: PluginParam): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Synchronously enable and start a plugin. * * Enabled plugins are automatically started when Linkurious starts. * * Idempotent, does nothing if the plugin is already enabled. */ start(params: PluginParam): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Synchronously disable and stop a plugin. * * Disabled plugins aren't started when Linkurious starts. * * Idempotent, does nothing if the plugin is already disabled. */ stop(params: PluginParam): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Synchronously upload and start a new plugin. * * If the plugin was already running, it is restarted. */ upload(params: UploadPluginParam): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }