import type { KnowledgeObjectProfilePolicy } from '../extensions.js';
import type { KnowledgeStore } from '../store.js';
import type { KnowledgeNodeRecord, KnowledgeRefinementTaskRecord, KnowledgeSourceRecord } from '../types.js';
import { type RepairProfileFact } from './repair-profile.js';
import { type RepairFactClassification } from './repair-fact-selection.js';
export interface SelfImprovePromotionContext {
    readonly store: KnowledgeStore;
    readonly objectProfiles?: readonly KnowledgeObjectProfilePolicy[] | undefined;
    readonly enrichSource?: (sourceId: string, options: {
        readonly force?: boolean;
        readonly knowledgeSpaceId?: string;
    }) => Promise<unknown>;
}
export interface PromoteRepairSourcesResult {
    readonly promotedFactCount: number;
    readonly repairComplete: boolean;
    readonly promotedSourceIds: readonly string[];
}
export declare function promoteRepairSources(context: SelfImprovePromotionContext, spaceId: string, gap: KnowledgeNodeRecord, sourceIds: readonly string[], task: KnowledgeRefinementTaskRecord, deadlineAt: number): Promise<PromoteRepairSourcesResult>;
export declare function upsertSourceLinkedRepairProfileFact(input: {
    readonly store: KnowledgeStore;
    readonly spaceId: string;
    readonly source: KnowledgeSourceRecord;
    readonly subjects: readonly KnowledgeNodeRecord[];
    readonly authority: 'official-vendor' | 'vendor' | 'secondary';
    readonly title: string;
    readonly summary: string;
    readonly evidence: string;
    readonly classification: RepairFactClassification | RepairProfileFact;
    readonly extractor: string;
    readonly confidence?: number | undefined;
    readonly supportWeight?: number | undefined;
    readonly describesWeight?: number | undefined;
    readonly factMetadata?: Record<string, unknown> | undefined;
    readonly edgeMetadata?: Record<string, unknown> | undefined;
    readonly metadataBuilder?: ((metadata: Record<string, unknown>) => Record<string, unknown>) | undefined;
}): Promise<KnowledgeNodeRecord>;
//# sourceMappingURL=self-improvement-promotion.d.ts.map