UNPKG

friday-sdk

Version:

Official JavaScript/TypeScript SDK for the Friday API

16 lines (15 loc) 449 B
import { APIClient } from "../client"; export interface CrawlOptions { formats: Array<"html" | "markdown" | "text" | "links">; maxPages?: number; } export interface CrawlResponse { pages: Array<{ url: string; html?: string; markdown?: string; text?: string; links?: string[]; }>; } export declare const crawl: (client: APIClient, url: string, options: CrawlOptions) => Promise<CrawlResponse>;