import { type Skill } from "./skills.js"; /** Bundled example skills live in `examples/skills//` at the package root. */ export declare function examplesDir(): string; export interface ExampleSkill { name: string; dir: string; description: string; skill?: Skill; error?: string; } export declare function listExamples(dir?: string): ExampleSkill[]; export declare function findExample(name: string, dir?: string): ExampleSkill | undefined; /** Bundled project templates live in `examples/projects//` at the package root. */ export declare function projectTemplatesDir(): string; export declare function listProjectTemplates(dir?: string): string[]; /** Hook names are `-task` and so on: the repository's directory name as letters, digits and dashes. */ export declare function projectSlug(dir: string): string; /** `owner/repo` of a GitHub `origin`, read from the checkout's Git configuration (no request is made). */ export declare function githubRepoOf(dir: string): string | undefined; export interface TemplateWrite { /** Files written, relative to the target directory. */ written: string[]; /** Files that already existed and were kept. */ kept: string[]; project: string; /** `owner/repo`, or the placeholder `OWNER/REPO` when the directory has no GitHub origin: edit it in the files. */ repo: string; } /** * Copies a project template into `target`: `dot-` path segments become `.`, and `__PROJECT__` / `__REPO__` * in the files become the directory's slug and its GitHub repository. An existing file is kept unless `force`. */ export declare function writeProjectTemplate(name: string, target: string, options?: { force?: boolean; dir?: string; }): TemplateWrite;