/** * Fulltext get 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 fulltextGet operation */ export interface FulltextGetOptions { /** Reference identifier (id or uuid) */ identifier: string; /** Specific type to get (pdf or markdown) */ type?: FulltextType | undefined; /** Preferred type ordering when type is not specified (pdf or markdown) */ preferredType?: FulltextType | undefined; /** If true, return file content instead of path */ stdout?: boolean | undefined; /** Identifier type: 'id' (default), 'uuid', 'doi', 'pmid', or 'isbn' */ idType?: IdentifierType | undefined; /** Directory for attachments (replaces fulltextDirectory) */ fulltextDirectory: string; } /** * Result of fulltextGet operation */ export interface FulltextGetResult { success: boolean; paths?: { pdf?: string; markdown?: string; }; content?: Buffer; error?: string; } /** * Get fulltext file paths or content for a reference. * * @param library - The library containing the reference * @param options - Get options * @returns Result with file paths or content */ export declare function fulltextGet(library: ILibrary, options: FulltextGetOptions): Promise; //# sourceMappingURL=get.d.ts.map