import type { NodeTarget, SpaceNode } from '@astrale-os/shell'; import type { Action } from '../../graph/action.js'; import type { ReadState } from '../../graph/memory/read/envelope.js'; export interface SpacesResult extends ReadState { /** Spaces-dir children, live (one-shot today), the caller's readable set. */ readonly spaces: readonly SpaceNode[]; /** The `selected_space` target — optimistically ahead during a `switch`. */ readonly selected: SpaceNode | null; /** `user::switchSpace` with a manual optimistic overlay (§1.6). */ readonly switch: Action<[NodeTarget], void>; } export declare function useSpaces(): SpacesResult; //# sourceMappingURL=spaces.hook.d.ts.map