import type { AgentsSession } from "../session/types.js"; import type { SpaceConfig } from "./schema.js"; /** Build a single-agent space config bound to one launch target. */ export declare const buildSpaceConfig: (title: string, target: string, kind: "agent" | "flow") => SpaceConfig; export interface CreateSpaceInput { title: string; /** Agent slug (standard agent) or flow id (workflow) to bind and launch. */ target: string; /** Defaults to "agent". */ targetKind?: "agent" | "flow"; } export interface CreatedSpace { spaceId: string; config: SpaceConfig; } /** Create a space for one agent/flow and persist its config. */ export declare const createSpace: (session: AgentsSession, input: CreateSpaceInput) => Promise; /** Read a space's stored config (`GET /api/spaces/{id}/config`). */ export declare const getSpaceConfig: (session: AgentsSession, spaceId: string) => Promise; /** A space's run artifacts — the structured results of its agent runs. */ export interface SpaceArtifacts { ok?: boolean; /** The artifact payload; shape is run-specific and parsed defensively. */ data?: unknown; [key: string]: unknown; } /** Read a space's run artifacts / output (`GET /api/spaces/{id}/artifacts`). */ export declare const getSpaceArtifacts: (session: AgentsSession, spaceId: string) => Promise; /** * Replace a space's config (`PUT /api/spaces/{id}/config`). The BFF has no * space delete; rewriting the config is how a space is renamed or has its * agents / global context changed. */ export declare const updateSpaceConfig: (session: AgentsSession, spaceId: string, config: SpaceConfig) => Promise;