/** * Wikipedia API Handler * * Extracts content from Wikipedia articles using the REST API. * Supports all language versions of Wikipedia. */ import { BaseSiteHandler, type FetchFunction, type SiteHandlerOptions, type SiteHandlerResult } from './types.js'; export declare class WikipediaHandler extends BaseSiteHandler { readonly name = "Wikipedia"; readonly strategy: "api:wikipedia"; canHandle(url: string): boolean; extract(url: string, fetch: FetchFunction, opts: SiteHandlerOptions): Promise; /** * Extract article title from Wikipedia URL */ private getArticleTitle; /** * Get Wikipedia REST API base (/api/rest_v1) for the URL's language. */ private getRestApiBase; /** * Get Wikipedia action API endpoint (/w/api.php) for the URL's language. * Used for the full plaintext extract which the REST summary endpoint doesn't expose. */ private getActionApiBase; /** * Format Wikipedia content into text and markdown */ private formatContent; } export declare const wikipediaHandler: WikipediaHandler; //# sourceMappingURL=wikipedia-handler.d.ts.map