import type { Node } from '@astrale-os/sdk/graph/node' import type { PathLike } from '@astrale-os/sdk/graph/path' import type { ReadState } from '../../graph/memory/read/envelope.js' import { unsupportedReadState } from '../../graph/memory/read/envelope.js' const EMPTY_CHAIN: readonly Node[] = Object.freeze([]) /** * Retained public concern with an explicit failed state: V2 has no implicit * slash-tree ancestry. Callers must query a declared Edge Class instead. */ export function useAncestors( _node?: Node | PathLike, ): ReadState & { readonly chain: readonly Node[] } { return { ...unsupportedReadState('navigation.ancestors requires an explicit parent Edge Class'), chain: EMPTY_CHAIN, } }