export type LibraryManifestVersion = 1; export type LibraryManifestSource = "repo" | "embedded"; export type LibraryItemKind = "bundle" | "prompt" | "package" | "mcp" | "skills"; export type LibraryItemScope = "default" | "dev"; export type LibrarySyncScope = LibraryItemScope | "all"; export interface LibraryManifestV1Item { id: string; kind: LibraryItemKind; repoPath: string; scopes: LibraryItemScope[]; name?: string; labels?: string[]; } export interface LibraryManifestV1 { version: LibraryManifestVersion; source: LibraryManifestSource; items: LibraryManifestV1Item[]; } export interface LoadedLibraryItem extends LibraryManifestV1Item { absolutePath: string; } export interface LoadedLibraryManifest { manifestPath: string; rootDir: string; source: LibraryManifestSource; items: LoadedLibraryItem[]; } export declare class LibraryManifestError extends Error { constructor(message: string, options?: { cause?: unknown; }); } export declare function createEmptyLibraryManifest(params: { source: LibraryManifestSource; }): LibraryManifestV1; export declare function loadLibraryManifestFromFile(manifestPath: string): Promise; export declare function parseLibraryManifest(raw: unknown): LibraryManifestV1; export declare function filterLibraryItemsByScope(items: LoadedLibraryItem[], scope: LibrarySyncScope): LoadedLibraryItem[]; export declare function writeLibraryManifestToFile(params: { manifestPath: string; manifest: LibraryManifestV1; }): Promise;