import type { VskillLock, SkillLockEntry } from "./types.js"; /** * Read vskill.lock from cwd or specified directory. * Returns null if the lockfile does not exist. */ export declare function readLockfile(dir?: string): VskillLock | null; /** * Write a VskillLock object to disk. */ export declare function writeLockfile(lock: VskillLock, dir?: string): void; /** * Create a lockfile if one does not already exist. * Returns the existing or newly created lock. */ export declare function ensureLockfile(dir?: string): VskillLock; /** * Add or update a skill entry in the lockfile. */ export declare function addSkillToLock(name: string, info: SkillLockEntry, dir?: string): void; /** * Read .skill-lock.json (skills.sh lock file) for cross-tool visibility. * Returns skill names found, or empty array if file doesn't exist. */ export declare function readSkillsShLock(dir?: string): { name: string; source: string; }[]; /** * Remove a skill entry from the lockfile. */ export declare function removeSkillFromLock(name: string, dir?: string): void;