export type ImportLicense = 'MIT' | 'Apache-2.0'; /** MIT / Apache-2.0 from a frontmatter value or a license file's text. */ export declare function classifyLicense(text: string | undefined): ImportLicense | undefined; export interface LicenseVerdict { license?: ImportLicense; /** The file holding the license text to keep, when one exists. */ file?: string; /** What was found, for the refusal message. */ found: string; } /** Which license governs a skill directory inside a repository. */ export declare function skillLicense(skillDir: string, repoRoot: string, declared?: string): LicenseVerdict; /** Every directory holding a SKILL.md under `root`. */ export declare function findSkillDirs(root: string): string[]; export declare const toSkillName: (s: string) => string; export interface ImportSpec { srcDir: string; repoRoot: string; /** e.g. https://github.com/owner/repo */ source: string; commit?: string; name?: string; description?: string; tags?: string[]; tools?: string[]; /** Relative .md files to take (SKILL.md implied); default all. */ files?: string[]; } export type ImportResult = { ok: true; name: string; license: ImportLicense; dir: string; } | { ok: false; name: string; reason: string; }; /** Import one skill directory into `destRoot//`. Refuses anything not * MIT/Apache-2.0 and never overwrites an existing skill unless `overwrite`. */ export declare function importSkill(spec: ImportSpec, destRoot: string, overwrite?: boolean): ImportResult; /** `owner/repo`, a git URL, or a local path → a checkout to read from. */ export declare function checkout(src: string): { root: string; source: string; commit?: string; cleanup: () => void; }; /** Import every eligible skill in a repository (or just `only`). The first * directory to claim a name wins, so translated copies deeper in a repo * don't shadow the original. */ export declare function importRepo(src: string, destRoot: string, opts?: { only?: string[]; overwrite?: boolean; tags?: string[]; }): ImportResult[]; //# sourceMappingURL=skill-import.d.ts.map