/** * AI-powered image relevance filter for Wikipedia images. * * Uses Gemini to evaluate whether Wikipedia images (based on captions/descriptions) * are suitable for representing an activity, filtering out: * - Diagrams, charts, maps, and infographics * - Logos, emblems, and icons * - Historical/archival black-and-white photos * - Equipment close-ups without activity context * - Portraits of notable people * * Wikipedia is an encyclopedia - most images are informative/educational. * We only want images showing the activity being done, the objects involved, * or the places where that activity happens. */ /** * Wikipedia image candidate for filtering. */ export interface WikipediaImageCandidate { /** Filename from Wikipedia (e.g., "Duckpins_closeup.jpg") */ readonly filename: string; /** Image description/caption from Wikipedia */ readonly description: string; /** URL to the image */ readonly url: string; } /** * Result of AI filtering - images suitable for activity display. */ export interface WikipediaImageMatch { /** Wikipedia filename */ readonly filename: string; /** Image URL */ readonly url: string; /** Confidence score 0-100 */ readonly confidence: number; } /** * Filter Wikipedia images for suitability as activity photos. * Returns only matching images with confidence scores. * * @param activity - The activity being represented (e.g., "Eiffel Tower", "hiking") * @param candidates - Wikipedia images with descriptions * @param apiKey - Google AI API key (Gemini) * @returns Suitable images sorted by confidence (highest first) */ export declare function filterWikipediaImages(activity: string, candidates: readonly WikipediaImageCandidate[], apiKey: string): Promise; //# sourceMappingURL=wikipedia-filter.d.ts.map