export type SourceType = 'git' | 'github' | 'local' | 'marketplace'; export interface PluginIndexEntry { source: string; sourceType: SourceType; ref: string | null; commit: string | null; enabled: boolean; installedAt: string; updatedAt: string; manifestName?: string; marketplace?: string; } export interface MarketplaceIndexEntry { source: string; sourceType: 'git' | 'github' | 'local'; ref: string | null; commit: string | null; installedAt: string; updatedAt: string; } export interface PluginIndex { version: 2; plugins: Record; marketplaces: Record; } export declare function readIndex(path?: string): PluginIndex; export declare function writeIndex(index: PluginIndex, path?: string): void; export declare function upsertPlugin(name: string, entry: PluginIndexEntry, path?: string): PluginIndex; export declare function removePlugin(name: string, path?: string): PluginIndex; export declare function setEnabled(name: string, enabled: boolean, path?: string): PluginIndex; export declare function upsertMarketplace(name: string, entry: MarketplaceIndexEntry, path?: string): PluginIndex; export declare function removeMarketplace(name: string, path?: string): PluginIndex;