import type { SkillMeta, CommandContext } from '../types.js'; export declare const PACKAGE_ROOT: string; export declare const VERSION_FILE = ".alipay-aipay-version"; export declare const TARGET_DIRS: { readonly codex: ".codex/skills"; readonly claude: ".claude/skills"; readonly agents: ".agents/skills"; }; export type InstallTargetName = keyof typeof TARGET_DIRS; export type InstallTarget = InstallTargetName | 'auto' | 'all'; export declare const DEFAULT_TARGET: InstallTargetName; export declare const EXTRA_SKILL_DIRS_ENV = "ALIPAY_AIPAY_EXTRA_SKILL_DIRS"; export declare const SKILL_NAME = "alipay-aipay"; export declare const SKILL_DIR = "skill"; /** * 可安装的 skills 列表 */ export declare const SKILLS: SkillMeta[]; /** * 根据环境变量和父进程识别当前 Agent。 */ export declare function detectCurrentAgentTarget(): InstallTargetName | null; /** * 解析安装目标 */ export declare function resolveInstallTarget(cwd: string, target?: Exclude): InstallTargetName; /** * 获取内置支持的目标目录名。 */ export declare function getAllInstallTargetNames(): InstallTargetName[]; /** * 读取用户追加的兼容 Skill 目录。 */ export declare function getExtraSkillDirs(): string[]; /** * 为已经解析出的 skills 父目录构造命令上下文。 */ export declare function getCommandContextForTargetDir(targetDir: string): CommandContext; /** * 获取批量安装目标上下文。普通命令扫描用户 Home 下已有的内置 Agent 目录; * 若没有任何已存在目录,则使用调用方指定的回退目标。环境变量可追加兼容 Skill 目录。 */ export declare function getAllCommandContexts(cwd: string, fallbackTarget?: InstallTargetName): CommandContext[]; /** * 获取命令上下文 */ export declare function getCommandContext(_cwd: string, target?: Exclude): CommandContext; /** * 获取包版本 */ export declare function getPackageVersion(): string; //# sourceMappingURL=config.d.ts.map