import type { SearchInput, SearchOutput, SearchEngine, ProgressCallback, StageResult } from '../types.js';
import type { SmartRouter } from '../fetch/router.js';
import type { BackendStatus } from '../server/backend-status.js';
import type { SamplingCapableServer } from '../search/sampling.js';
/**
 * Thin handler — validates wiring args and delegates to the selected search
 * provider (core by default, searxng opt-in via WIGOLO_SEARCH=searxng, hybrid
 * via WIGOLO_SEARCH=hybrid).
 *
 * Core orchestration lives in `src/search/core/`; the legacy SearXNG
 * orchestrator lives in `src/search/legacy/`.
 */
export declare function handleSearch(input: SearchInput, engines: SearchEngine[], router: SmartRouter, backendStatus?: BackendStatus, samplingServer?: SamplingCapableServer, onProgress?: ProgressCallback): Promise<StageResult<SearchOutput>>;
//# sourceMappingURL=search.d.ts.map