import type { KnowledgeSemanticService } from '../semantic/index.js';
import type { KnowledgeStore } from '../store.js';
import type { KnowledgeRefinementTaskRecord } from '../types.js';
import type { HomeGraphSpaceInput } from './types.js';
export declare function listHomeGraphRefinementTasks(input: HomeGraphSpaceInput & {
    readonly store: KnowledgeStore;
    readonly limit?: number | undefined;
    readonly state?: string | undefined;
    readonly subjectId?: string | undefined;
    readonly gapId?: string | undefined;
}): Promise<{
    readonly ok: true;
    readonly spaceId: string;
    readonly tasks: readonly KnowledgeRefinementTaskRecord[];
}>;
export declare function getHomeGraphRefinementTask(input: HomeGraphSpaceInput & {
    readonly store: KnowledgeStore;
    readonly taskId: string;
}): Promise<{
    readonly ok: true;
    readonly spaceId: string;
    readonly task: KnowledgeRefinementTaskRecord | null;
}>;
export declare function runHomeGraphRefinement(input: HomeGraphSpaceInput & {
    readonly store: KnowledgeStore;
    readonly semanticService?: KnowledgeSemanticService | undefined;
    readonly gapIds?: readonly string[] | undefined;
    readonly sourceIds?: readonly string[] | undefined;
    readonly limit?: number | undefined;
    readonly maxRunMs?: number | undefined;
    readonly force?: boolean | undefined;
}): Promise<{
    ok: boolean;
    spaceId: string;
    error: string;
    result?: never;
} | {
    ok: boolean;
    spaceId: string;
    result: import("../semantic/types.js").KnowledgeSemanticSelfImproveResult;
    error?: never;
}>;
export declare function cancelHomeGraphRefinementTask(input: HomeGraphSpaceInput & {
    readonly store: KnowledgeStore;
    readonly taskId: string;
}): Promise<{
    ok: boolean;
    spaceId: string;
    error: string;
    task?: never;
} | {
    ok: boolean;
    spaceId: string;
    task: KnowledgeRefinementTaskRecord;
    error?: never;
}>;
//# sourceMappingURL=refinement.d.ts.map