import type { KnowledgeObjectProfilePolicy } from '../extensions.js';
import type { KnowledgeStore } from '../store.js';
import type { KnowledgeNodeRecord, KnowledgeSourceRecord } from '../types.js';
export interface GapContext {
    readonly gap: KnowledgeNodeRecord;
    readonly sources: readonly KnowledgeSourceRecord[];
    readonly linkedObjects: readonly KnowledgeNodeRecord[];
    readonly facts: readonly KnowledgeNodeRecord[];
    readonly repairSourceIds: readonly string[];
}
export interface GapClassification {
    readonly action: 'repair' | 'skip' | 'suppress';
    readonly reason?: string | undefined;
    readonly status?: string | undefined;
    readonly markAttempt?: boolean | undefined;
}
export declare function collectCandidateGaps(store: KnowledgeStore, spaceId: string, sourceIdFilter: ReadonlySet<string> | null, gapIdFilter: ReadonlySet<string> | null): KnowledgeNodeRecord[];
export declare function buildGapContext(store: KnowledgeStore, spaceId: string, gap: KnowledgeNodeRecord, objectProfiles: readonly KnowledgeObjectProfilePolicy[]): GapContext;
export declare function classifyGap(context: GapContext, force: boolean, objectProfiles: readonly KnowledgeObjectProfilePolicy[]): GapClassification;
export declare function linkRepairSources(store: KnowledgeStore, spaceId: string, gap: KnowledgeNodeRecord, sourceIds: readonly string[], query: string, objectProfiles: readonly KnowledgeObjectProfilePolicy[]): Promise<number>;
//# sourceMappingURL=self-improvement-gap-context.d.ts.map