export interface PluginCandidate { name: string; source: string; description?: string; } export declare class PluginSourceRedirect extends Error { readonly source: string; constructor(source: string); } export declare class PluginSelectionRequired extends Error { readonly candidates: PluginCandidate[]; constructor(candidates: PluginCandidate[]); } export declare const isGitPluginSource: (source: string) => boolean; /** Fetch and validate a fixed tree without running hooks, submodules or package scripts. */ export declare function withCatalogSource(source: string, fn: (local: string, metadata: { origin: string; commit?: string; importManifest?: Record; }) => T | Promise): Promise; export declare const pluginSourceKey: (source: string) => string;