import type { LibraryItemMetadata, LibraryInstallerLogger } from "@ai-kod/workflow"; import type { LibrarySyncScope, LoadedLibraryManifest } from "../library/library-manifest.js"; export type DevLibrarySyncSource = "local" | "embedded"; export interface LibrarySyncReport { readonly source: DevLibrarySyncSource; readonly scope: LibrarySyncScope; readonly manifestPath: string; readonly libraryRoot: string; readonly planned: number; readonly installed: LibraryItemMetadata[]; } export declare class LibrarySyncError extends Error { constructor(message: string, options?: { cause?: unknown; }); } export declare function findRepoLibraryManifestPathSync(startDir: string): string | null; export declare function resolveCliPackageRootSync(): string; export declare function resolveEmbeddedLibraryManifestPathSync(): string; export declare function syncLibraryFromSource(params: { source: DevLibrarySyncSource; scope: LibrarySyncScope; libraryRoot: string; projectRoot?: string; force?: boolean; logger?: LibraryInstallerLogger; }): Promise; export declare function syncLibraryFromLoadedManifest(params: { loaded: LoadedLibraryManifest; scope: LibrarySyncScope; libraryRoot: string; force?: boolean; logger?: LibraryInstallerLogger; }): Promise;