/** * Fulltext detach 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 fulltextDetach operation */ export interface FulltextDetachOptions { /** Reference identifier (id or uuid) */ identifier: string; /** Specific type to detach (pdf or markdown) */ type?: FulltextType | undefined; /** Delete the file from disk */ removeFiles?: boolean | undefined; /** Identifier type: 'id' (default), 'uuid', 'doi', 'pmid', or 'isbn' */ idType?: IdentifierType | undefined; /** Directory for attachments (replaces fulltextDirectory) */ fulltextDirectory: string; } /** * Result of fulltextDetach operation */ export interface FulltextDetachResult { success: boolean; detached?: FulltextType[]; deleted?: FulltextType[]; error?: string; } /** * Detach fulltext file(s) from a reference. * * @param library - The library containing the reference * @param options - Detach options * @returns Result of the detach operation */ export declare function fulltextDetach(library: ILibrary, options: FulltextDetachOptions): Promise; //# sourceMappingURL=detach.d.ts.map