import type { SetOptional } from 'type-fest';
import type { ExecutionTools } from '../../../execution/ExecutionTools';
import type { KnowledgeSourceJson } from '../../../pipeline/PipelineJson/KnowledgeSourceJson';
import type { PrepareAndScrapeOptions } from '../../../prepare/PrepareAndScrapeOptions';
import type { ScraperSourceHandler } from '../Scraper';
/**
 * Factory function that creates a handler for processing knowledge sources.
 * Provides standardized processing of different types of knowledge sources
 * across various scraper implementations.
 *
 * @public exported from `@promptbook/core`
 */
export declare function makeKnowledgeSourceHandler(knowledgeSource: SetOptional<KnowledgeSourceJson, 'name'>, tools: Pick<ExecutionTools, 'fs' | 'fetch'>, options?: Pick<PrepareAndScrapeOptions, 'rootDirname' | 'isVerbose'>): Promise<ScraperSourceHandler>;
