/** * Fulltext open operation * * Uses attachments system internally with role='fulltext'. */ import type { ILibrary, IdentifierType } from "../../../core/library-interface.js"; import { type FulltextFormat } from "../fulltext-adapter/index.js"; /** * Fulltext type (matches existing FulltextType for backward compatibility) */ export type FulltextType = FulltextFormat; /** * Options for fulltextOpen operation */ export interface FulltextOpenOptions { /** Reference identifier (id or uuid) */ identifier: string; /** Specific type to open (pdf or markdown) */ type?: FulltextType | undefined; /** Preferred type when type is not specified (pdf or markdown) */ preferredType?: FulltextType | undefined; /** Identifier type: 'id' (default), 'uuid', 'doi', 'pmid', or 'isbn' */ idType?: IdentifierType | undefined; /** Directory for attachments (replaces fulltextDirectory) */ fulltextDirectory: string; } /** * Result of fulltextOpen operation */ export interface FulltextOpenResult { success: boolean; openedType?: FulltextType; openedPath?: string; error?: string; } /** * Open fulltext file with system default application. * * @param library - The library containing the reference * @param options - Open options * @returns Result with opened file info */ export declare function fulltextOpen(library: ILibrary, options: FulltextOpenOptions): Promise; //# sourceMappingURL=open.d.ts.map