import type { MediaPartResponse } from "@relaymessenger/sdk"; import { type ConfigContext } from "./config.js"; import type { BridgeTurn } from "./bridge-turn.js"; export interface InboundMediaOptions { chatId: string; token: string; apiURL: string; mediaDir?: string; context?: ConfigContext; fetch?: typeof globalThis.fetch; } export type DownloadedMedia = { ok: true; path: string; filename: string; mime_type: string; } | { ok: false; filename: string; error: string; }; /** External media URLs do not receive the Relay bearer token. */ export declare const downloadInboundMedia: (parts: readonly MediaPartResponse[], options: InboundMediaOptions) => Promise; /** A failed attachment is named in the turn; it never consumes the message. */ export declare const inboundMediaPrompt: (turn: BridgeTurn, options?: Omit) => Promise<{ text: string; images: string[]; }>; //# sourceMappingURL=inbound-media.d.ts.map