interface RepairOptions { /** Roots to walk. When omitted, defaults to all known cross-tool skill dirs. */ root?: string[]; /** Where to look for pristine sources. Defaults to ~/.claude/plugins/marketplaces. */ sourceRoot?: string; /** When true, write restored content to disk; otherwise dry-run (report only). */ write?: boolean; /** When true, emit JSON instead of human report. */ json?: boolean; } type Action = "restored" | "would-restore" | "corrupted-no-source" | "ok"; interface FileResult { path: string; action: Action; reasons: string[]; source?: string; } /** Detects the two corruption patterns. Returns reasons when corrupt, [] when clean. */ export declare function detectCorruption(content: string): string[]; export declare function repairSkillsCommand(opts?: RepairOptions): Promise<{ scanned: number; corrupted: number; restored: number; unresolvable: number; results: FileResult[]; }>; export {};