import type { KnowledgeNodeRecord, KnowledgeRefinementTaskRecord, KnowledgeRefinementTaskState, KnowledgeRefinementTaskTrigger } from '../types.js';
import type { KnowledgeStore } from '../store.js';
export interface RefinementTaskGapContext {
    readonly gap: KnowledgeNodeRecord;
    readonly sources: readonly {
        readonly id: string;
    }[];
    readonly linkedObjects: readonly KnowledgeNodeRecord[];
}
export declare function upsertRefinementTaskForGap(store: KnowledgeStore, spaceId: string, context: RefinementTaskGapContext, trigger: KnowledgeRefinementTaskTrigger, state: KnowledgeRefinementTaskState, message: string, data?: Record<string, unknown>): Promise<KnowledgeRefinementTaskRecord>;
export declare function updateRefinementTask(store: KnowledgeStore, task: KnowledgeRefinementTaskRecord, state: KnowledgeRefinementTaskState, message: string, data?: Record<string, unknown>): Promise<KnowledgeRefinementTaskRecord>;
//# sourceMappingURL=self-improvement-tasks.d.ts.map