import type { SkillDraft, SkillMeta } from "./types.js";
export declare class SkillPersistenceWriter {
    private readonly skillBaseDir;
    private readonly options;
    constructor(skillBaseDir: string, options?: {
        agentSkills?: boolean;
    });
    private skillDir;
    writeSkill(draft: SkillDraft): Promise<string>;
    private writeBundledFiles;
    skillExists(name: string): Promise<boolean>;
    removeSkill(name: string): Promise<void>;
    archiveSkill(name: string): Promise<string>;
    listArchivedSkillNames(): Promise<string[]>;
    readArchivedSkillMeta(name: string): Promise<SkillMeta | null>;
    recoverSkill(name: string): Promise<string>;
    findSkillDir(name: string): Promise<string | null>;
    readSkill(name: string): Promise<SkillDraft | null>;
    readRawSkill(name: string): Promise<string | null>;
    updateSkill(name: string, content: string): Promise<string>;
    listSkillNames(): Promise<string[]>;
    readSkillMeta(name: string): Promise<SkillMeta | null>;
    touchSkill(name: string): Promise<void>;
    private formatSkillMarkdown;
}
