import { type WebGuiRegistration } from './registry.js'; export interface OpenWebDashboardOpts { /** 浏览器打开函数(测试注入);缺省跨平台探测 */ opener?: (url: string) => void; /** 多实例选择器(测试注入);缺省读 stdin 编号菜单 */ choose?: (entries: WebGuiRegistration[]) => Promise; registryDir?: string; isPidAlive?: (pid: number) => boolean; /** M-2(2026-09-17 审查批):console 输出全量 token URL(--show-token 旗标接线); * 缺省 false 打码(前 4 位)——终端日志/录屏/分享截图的泄露面收口。浏览器 opener * 恒收全量 URL(打开功能不受打码影响)。 */ showToken?: boolean; } /** 跨平台浏览器 opener 导出复用(daemon 批 B 2026-09-30:cli/daemon.ts --open 同款 * 调用;函数体不变,仅开放导出)。 */ export declare function defaultOpener(url: string): void; /** 菜单行文本 → 选择编号:trim → parseInt → 整数且 1..count 返回数字,否则 null(空行取消/无效输入)。 */ export declare function parseChooseLine(line: string, count: number): number | null; export declare function openWebDashboard(opts?: OpenWebDashboardOpts): Promise;