UNPKG

mcp-crawl4ai-ts

Version:

TypeScript MCP server for Crawl4AI - web crawling and content extraction

58 lines 1.61 kB
import { BaseHandler } from './base-handler.js'; import { MarkdownEndpointOptions, ScreenshotEndpointOptions, PDFEndpointOptions, HTMLEndpointOptions } from '../types.js'; export declare class ContentHandlers extends BaseHandler { getMarkdown(options: Omit<MarkdownEndpointOptions, 'f' | 'q' | 'c'> & { filter?: string; query?: string; cache?: string; }): Promise<{ content: { type: string; text: string; }[]; }>; captureScreenshot(options: ScreenshotEndpointOptions): Promise<{ content: ({ type: string; data: string; mimeType: string; text?: undefined; } | { type: string; text: string; data?: undefined; mimeType?: undefined; })[]; }>; generatePDF(options: PDFEndpointOptions): Promise<{ content: ({ type: string; resource: { uri: string; mimeType: string; blob: string; }; text?: undefined; } | { type: string; text: string; resource?: undefined; })[]; }>; getHTML(options: HTMLEndpointOptions): Promise<{ content: { type: string; text: string; }[]; }>; extractWithLLM(options: { url: string; query: string; }): Promise<{ content: { type: string; text: string; }[]; }>; } //# sourceMappingURL=content-handlers.d.ts.map