import type { ProjectKnowledge, RecommendedSkill, AgentPlatform } from '../../types/index.js';
import { generateRules } from '../../engine/skill-generator.js';
export interface RulesWriteResult {
    platform: AgentPlatform;
    generatedRules: Awaited<ReturnType<typeof generateRules>>;
    rulesWritten: boolean;
    additionalFilesWritten: string[];
}
/**
 * Detect agent platform, generate rules, and write them to disk.
 * Only writes files that don't exist yet — never overwrites user custom rules.
 */
export declare function runRulesWriter(projectPath: string, projectId: string, knowledge: ProjectKnowledge, recommendedSkills: RecommendedSkill[]): Promise<RulesWriteResult>;
//# sourceMappingURL=rules-writer.d.ts.map