export declare function workspacePath(workspaceId: string): string; export declare function workspaceSessionsPath(workspaceId: string): string; /** Back-compat name: the old "agent" home is now the sessions index. */ export declare function workspaceAgentPath(workspaceId: string): string; export declare function workspaceSessionPath(workspaceId: string, sessionId: string): string; /** First-class durable workspace memory surface. */ export declare function workspaceMemoryPath(workspaceId: string): string; /** Workspace Insights — usage, spend, live ops (preview surface). */ export declare function workspaceInsightsPath(workspaceId: string): string; /** Workspace settings: workspace name, API keys, environments link, danger zone. */ export declare function workspaceSettingsPath(workspaceId: string): string; /** Organization (formerly "account") settings: billing, usage, plan, members. */ export declare function orgSettingsPath(workspaceId: string): string; export type CheckoutOutcome = "success" | "cancelled"; export declare function parseCheckoutOutcome(search: Record): CheckoutOutcome | undefined; /** Full-page artifact return context belongs to route assembly, not the session graph. */ export type ArtifactReturnSearch = { fromSession?: string | undefined; kind?: "site" | "image" | "document" | "spreadsheet" | "presentation" | "file" | undefined; q?: string | undefined; sort?: "newest" | "title" | undefined; status?: "archived" | undefined; /** * Opened from the Artifacts list: show the artifact's detail page with the * list's previous/next controls. Without it (a link from a chat, a * notification, a copied or pasted URL) the artifact opens straight in its * full view, and leaving the full view shows the detail page. */ browse?: boolean | undefined; /** * A Site's own sub-page. `publish` is kept for links made before Publish to * web moved into the Site's Settings tab, and opens that tab. */ view?: "publish" | undefined; /** A Site page's tab other than the Site itself. */ tab?: SiteDetailTab | undefined; }; export type SiteDetailTab = "versions" | "conversations" | "data" | "settings"; export declare function artifactReturnSearch(search: Record): ArtifactReturnSearch; /** The Site view: the Site with its conversations beside it, one of them open. */ export type SiteViewSearch = { conversation?: string | undefined; }; export declare function siteViewSearch(search: Record): SiteViewSearch; export declare function workspaceSitePath(workspaceId: string, siteId: string, conversation?: string | undefined): string; /** * What the rail marks as open for a location: a session page's session, or a * Site view's Site and its selected conversation. */ export declare function railRouteSelection(location: { pathname: string; search: Record; }): { sessionId: string | null; siteId: string | null; };