/** * AI-powered image relevance filter for Pixabay search results. * * Uses Gemini to evaluate whether images (based on tags/metadata) * genuinely represent a target activity, filtering out: * - Tangential keyword matches (coral necklace when searching "jewelry making") * - Cultural/documentary photos instead of activity photos * - Objects without activity context (a nut tagged with "jewelry making") * - Model photos where the activity is incidental (portrait with jewelry) */ /** * Image candidate from Pixabay search results. */ export interface PixabayImageCandidate { /** Unique identifier (Pixabay ID) */ readonly id: number; /** Comma-separated tags from Pixabay */ readonly tags: string; } /** * Result of AI filtering - images that match the activity. */ export interface PixabayImageMatch { /** Pixabay image ID */ readonly id: number; /** Confidence score 0-100 */ readonly confidence: number; } /** * Filter a batch of Pixabay image candidates for relevance to a target activity. * Returns only matching images with confidence scores. * * @param activity - The activity being searched for (e.g., "swimming", "sushi") * @param candidates - Pixabay search results with tags * @param apiKey - Google AI API key (Gemini) * @returns Matching images sorted by confidence (highest first) */ export declare function filterPixabayImages(activity: string, candidates: readonly PixabayImageCandidate[], apiKey: string): Promise; //# sourceMappingURL=pixabay-filter.d.ts.map