import type { LlmContentBlock } from "@slowcook-ai/core";
/**
* Extract image URLs from an issue or comment body. GitHub renders both
* HTML `
` (its user-attachments format) and markdown
* `` into images; we support both.
*
* Returns URLs in the order they appear. Deduplicates within the same
* body — a screenshot referenced twice only counts once.
*/
export declare function extractImageUrls(body: string): string[];
/**
* Fetch one image URL and return it as an LLM image content block, or
* `null` if the fetch or decode fails. Never throws — we would rather
* drop a screenshot than halt the whole refine run.
*/
export declare function fetchImageAsBlock(url: string, fetchImpl?: typeof fetch): Promise;
/**
* Turn a text body into a content array when it references image URLs
* that resolve successfully. Returns the original string when there's
* nothing to enrich — preserves the text-shorthand path for the common case.
*
* Images are appended AFTER the text block so the LLM reads the prose
* first, then sees what it describes. The original `
` / markdown
* references stay in the text so the agent can match text mentions to
* the image it's looking at.
*/
export declare function enrichBodyWithImages(body: string, fetchImpl?: typeof fetch): Promise;
//# sourceMappingURL=images.d.ts.map