export type WebResponseMode = "auto" | "raw" | "text" | "markdown" | "links" | "metadata" | "matches"; export type WebExtractMode = "readability" | "all-visible" | "none"; export type WebSearchSource = "extracted" | "raw"; export interface WebContentSearchOptions { query?: string | string[]; queries?: string[]; terms?: string[]; regex?: string; regexFlags?: string; caseSensitive?: boolean; source?: WebSearchSource; maxMatches?: number; contextChars?: number; } export interface WebContentProcessOptions { url: string; body: string; contentType?: string | null; responseMode?: string; extract?: string; includeLinks?: boolean; search?: WebContentSearchOptions | null; maxChars?: number; } export interface WebContentLink { text: string; url: string; } export interface WebContentMatch { kind: "query" | "term" | "regex"; query: string; match: string; index: number; snippet: string; } export interface WebContentResult { mode: Exclude; extract: WebExtractMode; contentType: string | null; title?: string; excerpt?: string; byline?: string; siteName?: string; lang?: string; publishedTime?: string; content?: string; links?: WebContentLink[]; matches?: WebContentMatch[]; totalMatches?: number; omittedMatches?: number; searchSource?: WebSearchSource; truncated?: boolean; searchTruncated?: boolean; } export declare function hasWebContentSearch(search: WebContentSearchOptions | null | undefined): boolean; export declare function normalizeWebResponseMode(value: unknown, fallback?: WebResponseMode): WebResponseMode; export declare function normalizeWebExtractMode(value: unknown, fallback?: WebExtractMode): WebExtractMode; export declare function parseWebContentSearchOptions(value: unknown): WebContentSearchOptions | null; export declare function processWebContent(options: WebContentProcessOptions): WebContentResult; export declare function formatWebContentResult(result: WebContentResult): string; //# sourceMappingURL=web-content.d.ts.map