UNPKG

pulse-ai-utils

Version:

Utility functions and helpers for AI-powered applications

41 lines (40 loc) 1.05 kB
import { GeoSearchResult } from '../services/geo-search-service'; import { Firestore } from '@google-cloud/firestore'; export interface GeographicSearchParams { lat?: number; lng?: number; area?: string; type?: string; category?: string; radius?: number; maxRadius?: number; minResults?: number; limit?: number; firestoreDb?: Firestore; } /** * Execute geographic search with location-based content discovery */ export declare function executeGeographicSearch(params: GeographicSearchParams): Promise<{ success: boolean; data: GeoSearchResult[]; source: string; strategy: string; location: { lat: number; lng: number; source: 'coordinates' | 'area' | 'default'; }; search: { radius_used: number; total_found: number; }; timing: { total_ms: number; }; timestamp: string; }>; /** * Stream geographic search results */ export declare function streamGeographicSearch(params: GeographicSearchParams): AsyncGenerator<any>;