import { UploadContext } from "./file-upload.js";
import { MessageContent, Part } from "@inkeep/agents-core";

//#region src/domains/run/services/blob-storage/file-upload-helpers.d.ts

/**
 * Fetches each remote `application/pdf` file part (http(s) `uri`), replaces it with an inline
 * base64 `bytes` part. Full response bodies are buffered in memory up to the same limit as
 * `downloadExternalFile` (see `MAX_FILE_BYTES`); streaming ingestion is not supported yet.
 */
declare function inlineExternalPdfUrlParts(parts: Part[]): Promise<Part[]>;
declare function buildPersistedMessageContent(text: string, parts: Part[], ctx: UploadContext): Promise<MessageContent>;
//#endregion
export { buildPersistedMessageContent, inlineExternalPdfUrlParts };