export interface WorkspaceLike { workspaceId?: string; title?: string; path?: string; createdAt?: string; sessionIds?: string[]; } export interface SessionListState { ids?: string[]; byId?: Record; current?: string | null; [key: string]: unknown; } export interface WsListState { items?: WorkspaceLike[]; archivedSessionIds?: string[]; [key: string]: unknown; } /** 开关状态(组件常驻:开关只切显示/过滤,不重新挂组件,保证即时)。 */ export declare function useWsTabsEnabled(): boolean; export declare function filterSessions(state: SessionListState, allowed: string[]): SessionListState; export declare function filterWorkspaces(state: WsListState, workspaceIds: string[]): WsListState; /** 官方“未分组”会话(不属于任何官方工作区 sessionIds 的会话)。 */ export declare function unownedSessionIds(list: SessionListState, items: WorkspaceLike[]): string[];