/** * Fulltext-to-attachments adapter utilities * * Maps fulltext command options and data to the new attachments system. * This adapter enables the fulltext command to use attachments backend * while maintaining backward-compatible interface. */ import type { AttachmentFile, Attachments } from "../../attachments/types.js"; /** * The role used for fulltext files in the attachments system */ export declare const FULLTEXT_ROLE: "fulltext"; /** * Fulltext format type (matching existing FulltextType) */ export type FulltextFormat = "pdf" | "markdown"; /** * Convert fulltext format to file extension */ export declare function formatToExtension(format: FulltextFormat): string; /** * Convert file extension to fulltext format * Returns undefined if extension is not a valid fulltext format */ export declare function extensionToFormat(ext: string): FulltextFormat | undefined; /** * Get the standard filename for a fulltext file * Following the naming convention: fulltext.{ext} */ export declare function getFulltextFilename(format: FulltextFormat): string; /** * Find a fulltext file of specific format in attachments */ export declare function findFulltextFile(attachments: Attachments | undefined, format: FulltextFormat): AttachmentFile | undefined; /** * Find all fulltext files in attachments */ export declare function findFulltextFiles(attachments: Attachments | undefined): AttachmentFile[]; //# sourceMappingURL=fulltext-adapter.d.ts.map