UNPKG

flipper-plugin-lib

Version:

Library containing common Flipper plugin installation utilities

21 lines 1.29 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ /// <reference types="node" /> import { InstalledPluginDetails } from 'flipper-common'; export declare function getInstalledPlugin(name: string, version: string): Promise<InstalledPluginDetails | null>; export declare function installPluginFromNpm(name: string): Promise<InstalledPluginDetails>; export declare function installPluginFromFileOrBuffer(packagePath: string | Buffer): Promise<InstalledPluginDetails>; export declare function removePlugin(name: string): Promise<void>; export declare function removePlugins(names: Array<string>): Promise<void>; export declare function getAllInstalledPluginVersions(): Promise<InstalledPluginDetails[]>; export declare function getInstalledPlugins(): Promise<InstalledPluginDetails[]>; export declare function cleanupOldInstalledPluginVersions(maxNumberOfVersionsToKeep: number): Promise<void>; export declare function moveInstalledPluginsFromLegacyDir(): Promise<void>; export declare function getAllInstalledPluginsInDir(dir: string, recursive?: boolean): Promise<InstalledPluginDetails[]>; //# sourceMappingURL=pluginInstaller.d.ts.map