import type { ProjectKnowledge, AdaptationResult } from '../../types/index.js';
export { PLACEHOLDER_MAP } from './placeholder-map.js';
export type { PlaceholderDefinition } from './placeholder-map.js';
export { rewritePackageManagerCommands, rewriteTestRunnerCommands } from './command-rewriter.js';
export type { AdaptationResult } from '../../types/index.js';
/**
 * Apply project-specific substitutions to raw skill content.
 * Pure function — no file I/O.
 *
 * Steps:
 * 1. Replace known placeholders (PLACEHOLDER_MAP)
 * 2. Track unknown placeholders (warn, leave as-is)
 * 3. Rewrite package manager commands (npm → pnpm, etc.)
 * 4. Rewrite test runner commands (jest → vitest, etc.)
 */
export declare function adaptSkillContent(rawContent: string, knowledge: ProjectKnowledge): AdaptationResult;
/**
 * Read raw skill from .planu/skill-cache/{source}/{skillName}.md,
 * adapt it, and write result to .claude/skills/{skillName}.md.
 * Updates .planu/skill-registry.json with new adaptedAt timestamp.
 *
 * @throws {Error} with message containing 'raw cache missing' when cache file is absent
 */
export declare function adaptAndInstallSkill(projectPath: string, skillName: string, knowledge: ProjectKnowledge): Promise<AdaptationResult>;
//# sourceMappingURL=index.d.ts.map