/** * domContract.ts — 官方工作区标题行 / 组头行的定位契约(批次⑥ 自 * workspaceTabs.tsx 原样搬出)。 * * 本文件只回答「哪个节点是标题行、这一行的 workspaceId 是什么」,不做隐藏、不做 * 注入;两处中英文硬编码数组(LABEL_WORDS / SEARCH_PLACEHOLDERS)是宿主文案, * 随宿主升级而失效,失效表现为 fail-closed:找不到就不动 DOM,不崩溃。 */ export declare function locateHeader(host: Element): { row: HTMLElement; label: HTMLElement; } | null; /** 正在打开 ⋯ 菜单的工作区行(官方组头行,含 menuOpen)。 */ export declare function findOpenProjectRow(): HTMLElement | null; /** 从行 React fiber 直读官方 group 节点里的 workspaceId(不按标题反查)。 */ export declare function workspaceInfoFromRow(row: HTMLElement): { workspaceId: string | null; title: string; };