import { type OrganizationAdminSection } from "./organization-admin.js"; /** * Workspace settings pages, addressed by `?section=` on `/settings`. Settings * hold configuration only: the settings rail also links to the Agents and * Insights dashboards and the runtime pages, which open as their own pages. * Organization settings (`/organization?section=`) share the same settings * rail, under its Organization section. */ export type WorkspaceSettingsSection = "general" | "access" | "models" | "usage" | "api-keys" | "developer" | "learning"; /** * Older `?section=` values. They keep working: Members is now Access, Danger * zone is the last row of General, and Capabilities is its own page. */ export type LegacyWorkspaceSettingsSection = "members" | "danger" | "plugins" | "capabilities"; export declare const WORKSPACE_SETTINGS_SECTIONS: readonly WorkspaceSettingsSection[]; declare const WORKSPACE_PAGE_TARGETS: readonly ["/workspaces/$workspaceId/insights", "/workspaces/$workspaceId/secrets", "/workspaces/$workspaceId/rigs", "/workspaces/$workspaceId/machines"]; export type WorkspacePageTarget = (typeof WORKSPACE_PAGE_TARGETS)[number]; export type WorkspaceManagementLocation = /** `section` is null when the URL asks for the settings list itself. */ { kind: "settings"; section: WorkspaceSettingsSection | null; } | { kind: "page"; target: WorkspacePageTarget; } /** `section` is null when the URL names no (or an unknown) organization page. */ | { kind: "organization"; section: OrganizationAdminSection | null; }; /** Parses `?section=`, mapping older names to the page that holds them now. */ export declare function workspaceSettingsSectionFromSearch(value: unknown): WorkspaceSettingsSection | null; /** * Resolve the workspace routes that open in settings mode: the settings rail * replaces the main rail. Matching is segment-aware: `/rigs/:rigId` belongs to * Sandbox environments, while a future `/rigs-archive` route is not captured. */ export declare function workspaceManagementLocation(pathname: string, workspaceId: string, settingsSection?: unknown): WorkspaceManagementLocation | null; export {};