/** * Directory name utilities for attachments * * Directory format: {id}[-PMID{pmid}]-{uuid-prefix} * Examples: * - With PMID: Smith-2024-PMID12345678-123e4567 * - Without PMID: Smith-2024-123e4567 */ interface ReferenceForDirectory { id: string; PMID?: string; custom?: { uuid?: string; }; } interface ParsedDirectoryName { id: string; pmid?: string; uuidPrefix: string; } /** * Extract first 8 characters of UUID as prefix */ export declare function extractUuidPrefix(uuid: string): string; /** * Generate directory name for a reference */ export declare function generateDirectoryName(ref: ReferenceForDirectory): string; /** * Parse directory name to extract components * * Returns null if the directory name doesn't match expected format */ export declare function parseDirectoryName(name: string): ParsedDirectoryName | null; export {}; //# sourceMappingURL=directory.d.ts.map