export declare const IMPORT_METADATA_FILE = ".my-pi-source.json"; export interface InstalledPlugin { scope: string; installPath: string; version: string; installedAt?: string; lastUpdated?: string; gitCommitSha?: string; } export interface ImportedSkillMetadata { version: number; source: string; upstream_skill_path: string; upstream_base_dir: string; upstream_install_path?: string; upstream_version?: string; upstream_git_commit_sha?: string; imported_at: string; last_synced_at: string; imported_hash: string; upstream_hash: string; } export interface PluginSkillSource { pluginId: string; installPath: string; version: string; gitCommitSha?: string; } export type SkillScope = 'global' | 'project' | 'plugin'; export interface DiscoveredSkill { name: string; description: string; skillPath: string; baseDir: string; source: string; scope: SkillScope; kind: 'managed' | 'external'; plugin?: PluginSkillSource; import_meta?: ImportedSkillMetadata; } export interface ImportableSkill extends DiscoveredSkill { scope: 'plugin'; kind: 'external'; plugin: PluginSkillSource; } export interface ImportedSkill extends DiscoveredSkill { kind: 'managed'; import_meta: ImportedSkillMetadata; } export declare function is_importable_skill(skill: DiscoveredSkill): skill is ImportableSkill; export declare function is_imported_skill(skill: DiscoveredSkill): skill is ImportedSkill; export declare function scan_managed_skills(): DiscoveredSkill[]; export declare function scan_imported_skills(): ImportedSkill[]; export declare function scan_project_skills(cwd?: string): DiscoveredSkill[]; export declare function scan_importable_skills(): ImportableSkill[];