import type { ArtifactStore } from '../../artifacts/index.js';
import type { KnowledgeSemanticService } from '../semantic/index.js';
import type { KnowledgeStore } from '../store.js';
export declare const HOME_GRAPH_SYNC_SELF_IMPROVEMENT_START_DELAY_MS = 5000;
export interface HomeGraphSelfImprovementRuntime {
    readonly store: KnowledgeStore;
    readonly artifactStore: ArtifactStore;
    readonly semanticService: KnowledgeSemanticService;
    readonly reportBackgroundError: (event: string, error: unknown, metadata: Record<string, unknown>) => void;
}
export declare function runHomeGraphSyncSelfImprovementPump(runtime: HomeGraphSelfImprovementRuntime, spaceId: string, installationId: string, signal: AbortSignal): Promise<void>;
export declare function enrichHomeGraphSpaceSources(runtime: HomeGraphSelfImprovementRuntime, spaceId: string): Promise<void>;
export declare function enrichAndImproveHomeGraphSource(runtime: HomeGraphSelfImprovementRuntime, sourceId: string, spaceId: string): Promise<void>;
export declare function refreshHomeGraphDevicePagesForSourceIds(runtime: HomeGraphSelfImprovementRuntime, spaceId: string, installationId: string, sourceIds: readonly string[], signal?: AbortSignal | undefined): Promise<void>;
export declare function shouldContinueHomeGraphSyncSelfImprovement(result: {
    readonly createdGaps?: number | undefined;
    readonly truncated?: boolean | undefined;
    readonly budgetExhausted?: boolean | undefined;
    readonly processedGaps?: number | undefined;
    readonly repairableGaps: number;
    readonly queuedTasks: number;
    readonly closedGaps: number;
    readonly acceptedSourceIds?: readonly string[] | undefined;
    readonly promotedFactCount?: number | undefined;
    readonly taskIds: readonly string[];
}): boolean;
export declare function readHomeGraphInstallationIdFromSpace(spaceId: string): string | undefined;
//# sourceMappingURL=sync-self-improvement.d.ts.map