/** * Library Registry Tools * Library management tools. * * Provides: * - searchLibraries: Queries PlatformIO global registry. * - installLibrary: Resolves and installs dependency. * - listInstalledLibraries: Locates local downloaded packages. * - uninstallLibrary: Removes downloaded dependency. * - updateLibraries: Polls registry for package updates. * - getLibraryInfo: Resolves data for registry ID. */ import type { LibraryInfo, LibraryInstallResult } from "../types.js"; /** * Searches for libraries in the PlatformIO registry. * * @param query - The search query string for the registry. * @param limit - Optional maximum number of returned results. * @returns Array collection of available package metadata. */ export declare function searchLibraries(query: string, limit?: number): Promise; /** * Installs a library (globally or to a specific project). * * @param libraryName - Target dependency registry package string. * @param options - Version specification and project directory context. * @returns Library install operation success status context. */ export declare function installLibrary(libraryName: string, options?: { projectDir?: string; version?: string; }): Promise; /** * Lists installed libraries (globally or for a specific project). * * @param projectDir - Optional project workspace to retrieve local packages from. * @returns Details on present library entities. */ export declare function listInstalledLibraries(projectDir?: string): Promise; /** * Uninstalls a library (globally or from a specific project). * * @param libraryName - Identified registry name to remove. * @param projectDir - Optional directory workspace path specifying local target. * @returns Success completion status string payload. */ export declare function uninstallLibrary(libraryName: string, projectDir?: string): Promise<{ success: boolean; message: string; }>; /** * Updates installed libraries (globally or for a specific project). * * @param projectDir - Associated project target space path. * @returns Success operation completion payload string metadata. */ export declare function updateLibraries(projectDir?: string): Promise<{ success: boolean; message: string; }>; /** * Updates a specific library (globally or for a specific project). * * @param libraryName - Identified registry name to update. * @param projectDir - Optional directory workspace path specifying local target. * @returns Success completion status string payload. */ export declare function updateLibrary(libraryName: string, projectDir?: string): Promise<{ success: boolean; message: string; }>; /** * Gets information about a specific library. * * @param libraryNameOrId - Recognized registry label referencing a library. * @returns Deep introspection context about the provided library or null. */ export declare function getLibraryInfo(libraryNameOrId: string): Promise; //# sourceMappingURL=libraries.d.ts.map