import type { KnowledgeSemanticService } from '../semantic/index.js'; import type { KnowledgeStore } from '../store.js'; import type { KnowledgeRefinementTaskRecord } from '../types.js'; import { type HomeGraphTriageOptions, type HomeGraphTriageResult } from './triage.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; /** * Run the LLM issue-triage pass over open device-quality issues. `true` uses * defaults; an object customizes thresholds/limits/rules. Omitted → unchanged * gap-refinement behavior for existing callers. */ readonly triage?: HomeGraphTriageOptions | boolean | undefined; /** Skip the gap self-improvement pass (e.g. a triage-only run). */ readonly skipGapRefinement?: boolean | undefined; }): Promise<{ readonly ok: boolean; readonly spaceId: string; readonly error?: string | undefined; readonly result?: Awaited> | undefined; readonly triage?: HomeGraphTriageResult | undefined; }>; 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