import type { ArtifactStore } from '../../artifacts/index.js';
import type { ArtifactDescriptor } from '../../artifacts/types.js';
import type { KnowledgeStore } from '../store.js';
import type { KnowledgeExtractionRecord, KnowledgeIssueRecord, KnowledgeSourceRecord } from '../types.js';
import type { KnowledgeSemanticService } from '../semantic/index.js';
import type { HomeGraphAutoLinkResult } from './auto-link.js';
import type { HomeGraphReindexInput, HomeGraphReindexResult } from './types.js';
export interface HomeGraphReindexContext {
    readonly store: KnowledgeStore;
    readonly artifactStore: ArtifactStore;
    readonly semanticService?: KnowledgeSemanticService | undefined;
    readonly extract: (source: KnowledgeSourceRecord, artifact: ArtifactDescriptor, spaceId: string, installationId: string) => Promise<KnowledgeExtractionRecord | undefined>;
    readonly autoLinkExistingSources: (spaceId: string, installationId: string, sourceIds?: readonly string[]) => Promise<readonly HomeGraphAutoLinkResult[]>;
    readonly refreshQualityIssues: (spaceId: string, installationId: string) => Promise<readonly KnowledgeIssueRecord[]>;
}
export declare function coalescedHomeGraphReindexResult(store: KnowledgeStore, input: HomeGraphReindexInput): HomeGraphReindexResult;
export declare function runHomeGraphReindex(context: HomeGraphReindexContext, input?: HomeGraphReindexInput): Promise<HomeGraphReindexResult>;
export declare function reindexHomeGraphSources(input: {
    readonly spaceId: string;
    readonly sources: readonly KnowledgeSourceRecord[];
    readonly extractionBySourceId: ReadonlyMap<string, KnowledgeExtractionRecord>;
    readonly artifactStore: ArtifactStore;
    readonly extract: (source: KnowledgeSourceRecord, artifact: ArtifactDescriptor) => Promise<KnowledgeExtractionRecord | undefined>;
    readonly limit?: number | undefined;
    readonly maxRunMs?: number | undefined;
}): Promise<HomeGraphReindexResult>;
//# sourceMappingURL=reindex.d.ts.map