import { DistTag, IonicEnvironment, Plugin, PluginMeta } from '../definitions'; import { PkgManagerOptions } from './utils/npm'; export declare const ERROR_PLUGIN_NOT_INSTALLED = "PLUGIN_NOT_INSTALLED"; export declare const ERROR_PLUGIN_NOT_FOUND = "PLUGIN_NOT_FOUND"; export declare const ERROR_PLUGIN_INVALID = "PLUGIN_INVALID"; export declare const KNOWN_PLUGINS: string[]; export declare function formatFullPluginName(name: string): string; export declare function promptToInstallPlugin(env: IonicEnvironment, pluginName: string, {message, global, reinstall}: { message?: string; global?: boolean; reinstall?: boolean; }): Promise; export declare function registerPlugin(env: IonicEnvironment, plugin: Plugin): void; export declare function unregisterPlugin(env: IonicEnvironment, plugin: Plugin): void; export declare function loadPlugins(env: IonicEnvironment): Promise; export interface LoadPluginOptions { message?: string; askToInstall?: boolean; reinstall?: boolean; global?: boolean; } export declare function loadPlugin(env: IonicEnvironment, pluginName: string, {message, askToInstall, reinstall, global}: LoadPluginOptions): Promise; export declare function getPluginMeta(p: string): Promise; export declare function versionNeedsUpdating(version: string, latestVersion: string): Promise; export declare function checkForUpdates(env: IonicEnvironment): Promise; export declare function getLatestPluginVersion(env: IonicEnvironment, name: string, version: string): Promise; export declare function pkgInstallPluginArgs(env: IonicEnvironment, name: string, options?: PkgManagerOptions): Promise; export declare function determineDistTag(version: string): DistTag; export declare function detectAndWarnAboutDeprecatedPlugin(env: IonicEnvironment, plugin: string): Promise;