import type { DocumentQuery, DbOperation } from './types.ts'; import type { SavedUpload } from '../operations/types.ts'; /** * Process content to download foreign images and replace URLs * Returns the modified content with foreign images replaced by local uploads * * This function: * 1. Extracts foreign image URLs from HTML and Markdown content * 2. Downloads the images in parallel with concurrency limit * 3. Saves them as uploads using addUpload * 4. Replaces the original URLs with local upload URLs * * @param client Database client * @param query Document query (supports path string, id number, OptimisticDocument, Route, etc.) * @param uploadsPath Path to the uploads directory * @param content The content to process for foreign images * @returns Object with modified content and list of saved uploads */ export declare const addUploadsFromContent: DbOperation<[ DocumentQuery, string, string ], { content: string; uploads: SavedUpload[]; }>; //# sourceMappingURL=addUploadsFromContent.d.ts.map