import type { DB } from "../index.js"; import type { SkillCreateInput, SkillUpdateInput, SkillSyncInput, SkillSearchInput, SkillGetInput, SkillsGetInput, SkillLinkInput, SkillCreateOutput, SkillSearchOutput, SkillGetOutput, SkillsGetOutput, SkillDependencyGraphInput, SkillDependencyGraphOutput } from "../../schemas/skills.js"; export declare function resolveSkillsDir(db: DB): Promise; export declare function createSkill(db: DB, input: SkillCreateInput): Promise; export declare function updateSkill(db: DB, input: SkillUpdateInput): Promise; export declare function syncSkill(db: DB, input: SkillSyncInput): Promise<{ name: string; contentHash: string; updated: boolean; metadataSynced: boolean; }>; export declare function searchSkills(db: DB, input: SkillSearchInput): Promise; export declare function getSkill(db: DB, input: SkillGetInput): Promise; export declare function getSkills(db: DB, input: SkillsGetInput): Promise; export declare function linkSkill(db: DB, input: SkillLinkInput): Promise; export declare function getSkillById(db: DB, id: number): Promise<{ id: number; name: string; title: string; description: string; filePath: string; contentHash: string | null; retrievalCount: number; lastRetrievedAt: string | null; needsReview: boolean; systemId: string | null; systemHash: string | null; executionLogId: number | null; createdAt: string; updatedAt: string; deletedAt: string | null; } | null>; /** * Auto-register a skill from an existing file in the skills directory. * Used by the file watcher to add skills that weren't created via create_skill. * These skills are flagged with needsReview=true for user review. * @param filePath - Path to the skill file (can be relative or absolute) */ export declare function registerSkillFromFile(db: DB, filePath: string): Promise<{ id: number; name: string; isNew: boolean; } | null>; /** * Get all skills that need review (auto-discovered, not created via tool) */ export declare function getSkillsNeedingReview(db: DB): Promise<{ id: number; name: string; title: string; filePath: string; }[]>; /** * Mark a skill as reviewed (clears the needsReview flag) */ export declare function markSkillReviewed(db: DB, name: string): Promise<{ success: boolean; }>; /** * Update all skill file paths when skills directory changes. * Both oldDir and newDir should be relative paths. */ export declare function migrateSkillPaths(db: DB, oldDir: string, newDir: string): Promise<{ migrated: number; }>; export declare function deleteSkills(db: DB, input: { names: string[]; deleteFiles?: boolean; soft?: boolean; }): Promise<{ deleted: number; filesDeleted: number; }>; export declare function restoreSkills(db: DB, names: string[]): Promise<{ restored: number; }>; /** * Get a dependency graph for a skill, showing all connected skills, resources, and facts. * Traverses the graph up to maxDepth levels deep. */ export declare function getDependencyGraph(db: DB, input: SkillDependencyGraphInput): Promise; //# sourceMappingURL=skills.d.ts.map