/** * Open Library API Integration * * Stage 2 of the entity resolution pipeline. * Searches Open Library for books by title/author, filters for valid physical formats. */ import type { ResponseCache } from '../caching/types'; import type { FetchFn } from '../scraper/types'; import type { OpenLibraryResult } from './types'; /** * Configuration for Open Library search. */ export interface OpenLibrarySearchConfig { /** 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 Open Library for a book by title and optionally author. * * @param title - Book title to search for * @param author - Optional author name (improves search accuracy) * @param config - Search configuration * @returns OpenLibraryResult if found, null otherwise */ export declare function searchOpenLibrary(title: string, author: string | undefined, config?: OpenLibrarySearchConfig): Promise; //# sourceMappingURL=openlibrary.d.ts.map