/** * GoalsSpatialView — the owner life-direction surface authored once with the * spatial vocabulary, so it renders correctly wherever it is displayed: * * - GUI today through `` (DOM). * - Future adapters can reuse the same snapshot contract behind the retained modality types. * * It is purely presentational (a snapshot + an action callback in, primitives * out) and imports only the cross-modality primitives plus this plugin's own * display DTOs, so it is safe to render in the Node agent process where the * terminal lives (no browser/data-fetch import). * * The view is read-only: goals are owned by the personal-assistant routes and * created through the assistant chat, not mutated here. The only interactions * are the status-filter toggles, a Retry on the error state, and the "Set a * goal" chat affordance on the empty state. */ import { type GoalItem, type GoalStatus } from "../../types.js"; /** Coarse load state of the goals surface. */ export type GoalsLoadStatus = "loading" | "error" | "ready"; export interface GoalsSnapshot { /** Coarse load state. */ status: GoalsLoadStatus; /** Goal records (empty until ready). */ goals: GoalItem[]; /** Active status filters; empty = show every status. */ activeStatuses: GoalStatus[]; /** Error text when status is "error". */ error?: string | null; } export interface GoalsSpatialViewProps { snapshot: GoalsSnapshot; /** * Dispatch by agent id: `retry` (re-fetch on the error state), `new` (ask the * assistant to set a goal), and `filter:` (toggle one status chip, * status ∈ active|paused|archived|satisfied). */ onAction?: (action: string) => void; } export declare function GoalsSpatialView({ snapshot, onAction, }: GoalsSpatialViewProps): import("react").JSX.Element; //# sourceMappingURL=GoalsSpatialView.d.ts.map