export declare const SKILLS_JSON: string; export interface SkillManifestEntry { name: string; source: string; installedAt: string; } export declare function readManifest(): SkillManifestEntry[]; export declare function writeManifest(entries: SkillManifestEntry[]): void; export declare function upsertManifest(name: string, source: string): void; export declare function removeFromManifest(name: string): boolean; export declare function snapshotDirs(): Map>; export declare function diffSnapshots(before: Map>, after: Map>): Array<{ dir: string; name: string; }>; export declare function extractSkillName(pkg: string): string; export declare function findExistingSkill(name: string): { name: string; dir: string; } | null; /** * Quote one argument for a Windows command line. * * Windows programs parse their own command line with MSVCRT rules, where a run * of backslashes immediately before a quote escapes it. Wrapping bare in * `"${arg}"` therefore breaks for any argument ending in a backslash: `trailing\` * became `"trailing\"`, the closing quote was consumed, and the child received * `trailing"` — smuggling in exactly the quote character WINDOWS_UNSAFE_ARG * exists to reject, and letting one argument swallow the next. * * A run of 2n backslashes before the closing quote yields n literal * backslashes and still terminates the string, so double only that final run. * Interior backslashes are literal and must not be touched, or every Windows * path argument would be mangled. */ export declare function quoteWindowsArg(arg: string): string; export declare function runNpxSkills(args: string[], stdio?: "inherit" | "pipe"): { status: number | null; }; export declare function copySkillToInstance(name: string, sourceDir: string): void; export declare function skillsFind(query?: string): void; export declare function skillsAdd(pkg: string): void; export declare function skillsRemove(name: string): void; export declare function skillsList(): void; export declare function skillsUpdate(): void; export declare function skillsRestore(): void; //# sourceMappingURL=skills.d.ts.map