import type { Attachments } from "./types.js"; /** * Reference with attachment-related fields */ interface ReferenceForAttachments { id: string; PMID?: string; custom?: { uuid?: string; attachments?: Attachments; }; } /** * Get the full directory path for a reference's attachments * * Uses existing directory name from metadata if available, * otherwise generates a new one. */ export declare function getDirectoryPath(ref: ReferenceForAttachments, baseDir: string): string; /** * Ensure the attachments directory exists for a reference * * Creates the directory if it doesn't exist. * Returns the full directory path. */ export declare function ensureDirectory(ref: ReferenceForAttachments, baseDir: string): Promise; /** * Delete a directory if it's empty * * Does nothing if the directory is not empty or doesn't exist. */ export declare function deleteDirectoryIfEmpty(dirPath: string): Promise; /** * Rename a directory * * Does nothing if the paths are the same or old directory doesn't exist. */ export declare function renameDirectory(oldPath: string, newPath: string): Promise; export {}; //# sourceMappingURL=directory-manager.d.ts.map