//#region src/web/lib/dashboardRoute.d.ts export declare const PLUGINS_ROUTE = "/plugins"; export declare const PLUGINS_PAGE_ID = "plugins"; /** Po Cloud's Team pages: `/organization`, `/organization/members` and `/organization/invitations`. */ export declare const TEAM_ROUTE = "/organization"; export declare const TEAM_PAGE_ID = "organization"; /** Canonical URL state, available anywhere in a dashboard's application tree. */ export interface DashboardRoute { /** `home` is `/`: the Home screen of plugin cards, shown with no session focused. */ kind: 'home' | 'session' | 'settings' | 'page' | 'workspace'; sessionId?: string; tabId?: string; /** The Settings section, or the Team page's (`members`, `invitations`; none for its overview). */ section?: string; /** The plugin page at `/page/`; the host's own Plugins and Team pages are `plugins` and `organization`. */ pageId?: string; /** The one plugin `/plugins/` opens. */ pluginId?: string; workspaceId?: string; } interface DashboardRouteMatch { routeId: string; fullPath: string; params?: unknown; search?: unknown; } /** * Every field comes from the leaf match. During a transition `location.pathname` already * names the next route while the matches (and their params) still describe the current one, * so mixing them yields impossible states such as a session route without a session id. */ export declare function dashboardRouteFrom(state: { location: { pathname: string; }; matches: readonly DashboardRouteMatch[]; }): DashboardRoute; export declare function useDashboardRoute(): DashboardRoute; //#endregion export {}; //# sourceMappingURL=dashboardRoute.d.mts.map