/** * Attachment detach operation */ import type { ILibrary, IdentifierType } from "../../../core/library-interface.js"; /** * Options for detachAttachment operation */ export interface DetachAttachmentOptions { /** Reference identifier */ identifier: string; /** Filename to detach */ filename?: string; /** Detach by role instead of filename */ role?: string; /** Detach all files of the role */ all?: boolean; /** Delete file from disk */ removeFiles?: boolean; /** Identifier type */ idType?: IdentifierType; /** Base directory for attachments */ attachmentsDirectory: string; } /** * Result of detachAttachment operation */ export interface DetachAttachmentResult { success: boolean; detached: string[]; deleted: string[]; directoryDeleted?: boolean; error?: string; } /** * Detach an attachment from a reference */ export declare function detachAttachment(library: ILibrary, options: DetachAttachmentOptions): Promise; //# sourceMappingURL=detach.d.ts.map