import { FilePart } from "@inkeep/agents-core";

//#region src/domains/run/services/blob-storage/text-attachment-resolver.d.ts
interface ResolveTextAttachmentOptions {
  /**
   * When true, throws `UnsupportedTextAttachmentSourceError` if the part has
   * neither inline bytes nor a blob URI. When false (default), returns an
   * `[Attachment unavailable]` block instead so the caller never sees a throw.
   */
  throwIfUnresolvable?: boolean;
}
/**
 * Resolve a text-document `FilePart` into its `<attached_file>...</attached_file>`
 * block — decoded content on success, `[Attachment unavailable]` fallback on any
 * download/decode failure. Accepts both inline-bytes parts (first-turn input) and
 * blob-URI parts (post-upload history rebuild).
 */
declare function resolveTextAttachmentBlock(part: FilePart, options?: ResolveTextAttachmentOptions): Promise<string>;
//#endregion
export { ResolveTextAttachmentOptions, resolveTextAttachmentBlock };