import type { KnowledgeStore } from '../store.js';
import type { KnowledgeEdgeRecord, KnowledgeExtractionRecord, KnowledgeNodeRecord, KnowledgeSourceRecord, KnowledgeSourceType } from '../types.js';
import type { HomeGraphRenderState } from './rendering.js';
export interface HomeGraphState extends Omit<HomeGraphRenderState, 'title'> {
    readonly extractions: readonly KnowledgeExtractionRecord[];
}
export declare function readHomeGraphState(store: KnowledgeStore, spaceId: string): HomeGraphState;
export declare function renderHomeGraphState(store: KnowledgeStore, spaceId: string, title: string): HomeGraphRenderState;
export declare function sourcesLinkedToNode(nodeId: string, state: HomeGraphState): KnowledgeSourceRecord[];
export declare function collectLinkedObjects(results: readonly {
    readonly source?: KnowledgeSourceRecord | undefined;
    readonly node?: KnowledgeNodeRecord | undefined;
}[], state: {
    readonly edges: readonly KnowledgeEdgeRecord[];
    readonly nodes: readonly KnowledgeNodeRecord[];
}): KnowledgeNodeRecord[];
export declare function missingDevicePassportFields(device: KnowledgeNodeRecord, sources: readonly KnowledgeSourceRecord[], facts?: readonly KnowledgeNodeRecord[]): string[];
export declare function findHomeAssistantNode(nodes: readonly KnowledgeNodeRecord[], kind: string, id: string): KnowledgeNodeRecord | undefined;
export declare function inferHomeGraphSourceType(tags: readonly string[] | undefined, fallback: KnowledgeSourceType): KnowledgeSourceType;
export declare function safeHomeGraphFilename(value: string): string;
export declare function renderAskAnswer(query: string, results: readonly {
    readonly title: string;
    readonly summary?: string | undefined;
    readonly excerpt?: string | undefined;
    readonly source?: KnowledgeSourceRecord | undefined;
    readonly node?: KnowledgeNodeRecord | undefined;
}[], mode: 'concise' | 'standard' | 'detailed'): string;
export declare function edgeConnectsNode(edge: KnowledgeEdgeRecord, nodeId: string, relation: string, toId: string): boolean;
//# sourceMappingURL=state.d.ts.map