import type { ExtractedContent } from "./extract.ts"; export interface SearchResult { title: string; url: string; snippet: string; } export interface SearchResponse { answer: string; results: SearchResult[]; inlineContent?: ExtractedContent[]; } export interface SearchOptions { numResults?: number | undefined; recencyFilter?: ("day" | "week" | "month" | "year") | undefined; domainFilter?: string[] | undefined; signal?: AbortSignal | undefined; } export declare function isPerplexityAvailable(): boolean; export declare function searchWithPerplexity(query: string, options?: SearchOptions): Promise; /** Asks Sonar for a prose answer. The Search API returns only ranked pages, so prompts that need prose use this. */ export declare function askPerplexity(prompt: string, options?: { signal?: AbortSignal; }): Promise;