export interface WebSearchResult {
    title: string;
    url: string;
    snippet: string;
}
export interface WebSearchOutput {
    query: string;
    results: WebSearchResult[];
    totalResults?: number;
}
export interface WebSearchBackend {
    search(query: string, options?: {
        allowedDomains?: string[];
        blockedDomains?: string[];
        maxResults?: number;
        /** 时效过滤(§4.2):day/week/month/year;源不支持时由其忽略 */
        freshness?: "day" | "week" | "month" | "year" | "any";
        /** 检索语言(如 "zh"/"en");源不支持时由其忽略 */
        lang?: string;
    }): Promise<WebSearchOutput>;
}
