/** * Attachment open operation * * Opens attachments directory or specific file with system application. */ import type { ILibrary, IdentifierType } from "../../../core/library-interface.js"; /** * Options for openAttachment operation */ export interface OpenAttachmentOptions { /** Reference identifier (id or uuid) */ identifier: string; /** Specific filename to open */ filename?: string; /** Role to open (opens first matching file) */ role?: string; /** Print path instead of opening */ print?: boolean; /** Identifier type */ idType?: IdentifierType; /** Base directory for attachments */ attachmentsDirectory: string; } /** * Result of openAttachment operation */ export interface OpenAttachmentResult { success: boolean; /** Path that was opened or would be opened */ path?: string; /** Whether the directory was created */ directoryCreated?: boolean; error?: string; } /** * Open attachment directory or file */ export declare function openAttachment(library: ILibrary, options: OpenAttachmentOptions): Promise; //# sourceMappingURL=open.d.ts.map