import type { SlashCommand } from '../index.js'; import type { SkillRegistryAdapter } from '../skills/registry/registry-adapter.js'; import type { Plugin } from '../types/plugin.js'; import type { SkillLoader } from '../types/skill.js'; interface SkillsPluginOptions { skillLoader?: SkillLoader | undefined; /** * Registry adapters. When unset the plugin wires the github-direct adapter * (for `user/repo` installs) plus a skills.sh adapter pointed at * `config.skills.registryUrl` (default {@link DEFAULT_SKILLS_SH_URL}). */ registryAdapters?: SkillRegistryAdapter[] | undefined; } /** * SkillsPlugin — skill library + installer + authoring toolkit. * * Registers `/skill`, `/skill-gen`, `/skill-search`, `/skill-install`, * `/skill-import`, `/skill-update`, `/skill-uninstall`. First-party ("official") * plugin, so the commands keep their bare names. Needs a `SkillLoader` (injected * by the host via `config.skillLoader`); without one the commands report that * and no-op. */ export declare function createSkillsPlugin(opts?: SkillsPluginOptions): Plugin; export declare function buildSkillCommand(skillLoader?: SkillLoader): SlashCommand; export declare function buildSkillGeneratorCommand(skillLoader?: SkillLoader): SlashCommand; export declare function buildSkillSearchCommand(_skillLoader: SkillLoader | undefined, registryAdapters: SkillRegistryAdapter[]): SlashCommand; export declare function buildSkillInstallCommand(skillLoader?: SkillLoader, registryAdapters?: SkillRegistryAdapter[]): SlashCommand; /** * Resolve a `--from ` source directory for `/skill-import`. Returns the * project-level dir (`/./`) or user-level (`~/./` * when `global`), or `undefined` for an unknown tool id. Exported for testing. */ export declare function resolveImportSourceDir(tool: string, opts: { global: boolean; projectRoot: string; homeDir?: string; }): string | undefined; export declare function buildSkillImportCommand(skillLoader?: SkillLoader): SlashCommand; export declare function buildSkillUpdateCommand(skillLoader?: SkillLoader, registryAdapters?: SkillRegistryAdapter[]): SlashCommand; export declare function buildSkillUninstallCommand(skillLoader?: SkillLoader): SlashCommand; export {}; //# sourceMappingURL=skills-plugin.d.ts.map