/** * Optional-capability bridge to the "relationships" service for identity-cluster * resolution: `getRelatedEntityIds` expands an entity id to its cluster members * and `resolvePrimaryEntityId` collapses an alias to its canonical primary id. * Degrades to the identity function when the service, or the relevant method, is * absent, so callers can treat clustering as best-effort. */ import type { UUID } from "./types/primitives.js"; import type { IAgentRuntime } from "./types/runtime.js"; export declare function getRelatedEntityIds(runtime: IAgentRuntime, entityId: UUID): Promise; /** * Resolve only identities whose linkage is strong enough to authorize private * cross-room disclosure. A configured identity authority is canonical and * fail-closed; otherwise the relationships service may expose its confirmed- * link-only resolver. Inferred same-handle clusters never authorize this path. */ export declare function getVerifiedRelatedEntityIds(runtime: IAgentRuntime, entityId: UUID): Promise; /** * Drop a memoized cluster (or the whole memo) so the next resolution re-queries * live. Call after an identity merge/link so cross-turn recall reflects the new * membership immediately instead of waiting out the TTL. */ export declare function invalidateRelatedEntityIds(runtime: IAgentRuntime, entityId?: UUID): void; export declare function resolvePrimaryEntityId(runtime: IAgentRuntime, entityId: UUID): Promise;