export type WebOpInput = { o: "search"; q: string; } | { o: "fetch"; u: string; f?: string; }; export type WebOpsParams = { op: WebOpInput[]; }; export declare function runWebOps(params: WebOpsParams, ctx: { sessionManager: { getSessionDir(): string; }; }, signal?: AbortSignal): Promise<{ content: { type: "text"; text: string; }[]; details: { ops: Record[]; }; }>; export declare function extractSnippet(raw: string, title: string): string; export declare function validateFetchUrl(url: string): void; export declare function htmlToMarkdown(html: string, baseUrl: string): { title: string; markdown: string; }; export declare function trimLargeDocument(markdown: string, maxChars: number): string; export declare function stripMarkdownFormatting(markdown: string): string; export declare function urlToHash(url: string): string; export declare function looksLikeUrlPrompt(prompt: string | undefined): boolean; export declare function looksLikeWebSearchPrompt(prompt: string | undefined): boolean; //# sourceMappingURL=web-ops.d.ts.map