import type { CslItem } from "../../core/csl-json/types.js"; import type { ILibrary, IdentifierType } from "../../core/library-interface.js"; import type { FulltextType } from "../fulltext/index.js"; /** * Options for removeReference operation */ export interface RemoveOperationOptions { /** Reference ID or UUID */ identifier: string; /** Identifier type: 'id' (default), 'uuid', 'doi', 'pmid', or 'isbn' */ idType?: IdentifierType; /** Directory containing fulltext files (required if deleteFulltext is true) */ fulltextDirectory?: string; /** Whether to delete associated fulltext files */ deleteFulltext?: boolean; } /** * Result of removeReference operation */ export interface RemoveResult { /** Whether the reference was removed */ removed: boolean; /** The removed item (if found and removal succeeded) */ removedItem?: CslItem; /** Fulltext types that were deleted (only when deleteFulltext=true) */ deletedFulltextTypes?: FulltextType[]; } /** * Get fulltext attachment types from a CSL item. */ export declare function getFulltextAttachmentTypes(item: CslItem): FulltextType[]; /** * Remove a reference from the library. * * @param library - The library to remove from * @param options - Remove options including identifier and lookup method * @returns Result indicating success and the removed item */ export declare function removeReference(library: ILibrary, options: RemoveOperationOptions): Promise; //# sourceMappingURL=remove.d.ts.map