/** * Wikidata API Integration * * Stage 1 of the entity resolution pipeline. * Queries Wikidata SPARQL endpoint by title and category type. */ import type { ResponseCache } from '../caching/types'; import type { FetchFn } from '../scraper/types'; import type { EntityType, WikidataResult } from './types'; /** * Configuration for Wikidata search. */ export interface WikidataSearchConfig { /** Response cache for API calls */ cache?: ResponseCache | undefined; /** User agent for API requests */ userAgent?: string | undefined; /** Request timeout in milliseconds */ timeout?: number | undefined; /** Custom fetch function (for testing) */ customFetch?: FetchFn | undefined; } /** * Search Wikidata for an entity by title and category. * * @param title - Entity title to search for * @param category - Entity category for type filtering * @param config - Search configuration * @returns WikidataResult if found, null otherwise */ export declare function searchWikidata(title: string, category: EntityType, config?: WikidataSearchConfig): Promise; //# sourceMappingURL=wikidata.d.ts.map