import type { WebSearchRequest, WebSearchResponse } from '../../web-search/types.js';
import type { KnowledgeSourceType } from '../types.js';
import type { KnowledgeSemanticGapRepairer } from './types.js';
interface GapRepairSearch {
    search(request: WebSearchRequest): Promise<WebSearchResponse>;
}
interface GapRepairIngest {
    ingestUrl(input: {
        readonly url: string;
        readonly knowledgeSpaceId?: string | undefined;
        readonly title?: string | undefined;
        readonly tags?: readonly string[] | undefined;
        readonly sourceType?: KnowledgeSourceType | undefined;
        readonly connectorId?: string | undefined;
        readonly allowPrivateHosts?: boolean | undefined;
        readonly metadata?: Record<string, unknown> | undefined;
    }): Promise<{
        readonly source: {
            readonly id: string;
            readonly status: string;
        };
    }>;
}
export interface WebGapRepairOptions {
    readonly searchService: GapRepairSearch;
    readonly ingestService: GapRepairIngest;
    readonly maxResults?: number | undefined;
    readonly maxSearches?: number | undefined;
    readonly maxSources?: number | undefined;
    readonly minDistinctDomains?: number | undefined;
    readonly minConfidence?: number | undefined;
    readonly maxIngest?: number | undefined;
    readonly searchTimeoutMs?: number | undefined;
    readonly ingestTimeoutMs?: number | undefined;
}
export declare function createWebKnowledgeGapRepairer(options: WebGapRepairOptions): KnowledgeSemanticGapRepairer;
export {};
//# sourceMappingURL=gap-repair.d.ts.map