import { ContextSwitchRedirectRule } from '@burdenoff/fe-libs/chrome/contextSwitcher/resolveSwitchTarget'; /** * Context-switch redirect rules for the VibeControls routes (BOFF-2821, G14). * * After a header org / workspace switch the workspace token is re-issued, so a * VibeControls route that carries a resource id of the OLD workspace (an agent, * a vibe, a session, a tunnel, a calendar task, an AI session, …) would fire * queries the new token cannot authorize, or show the old workspace's record * under the new one. Pass these rules to fe-libs * `useContextSwitchController({ redirectRules })` and the shell replace-navigates * such a route to its section landing instead: * * - `
/` → `
` — every detail route is * `/vibecontrols/
/` (`agents/:id`, `vibes/:id/docs/*`, * `calendar/task/:taskId`, `ai/sessions/:sessionId`, …), so anything deeper * than a section landing goes back to it, current and future routes alike. * - `share/:token` and `deck/:token` stay: they are share links resolved by * their token, not by the active workspace, and `share` / `deck` have no * landing page to fall back to. * * A bare section page (`/vibecontrols/agents`) and the overview * (`/vibecontrols`) stay in place and re-scope through the new selection. * * The route shapes are owned by `VibeControlsRoutes`, so the table is kept next * to it. The module has no runtime imports: a shell's header loads it eagerly * through the `./switch-redirect-rules` subpath, while `VibeControlsRoot` is * lazy. * * @param basePath where the shell mounts `VibeControlsRoot` — a rooted path * without a trailing slash (default `/vibecontrols`). */ export declare function vibecontrolsSwitchRedirectRules(basePath?: string): ReadonlyArray;