/** * dsh-notifier events 域 —— 6 个内置通知的双语产品文案。 * * 正文结构只有一份,语言只替换产品词和时长单位;任务名、问题、理由与错误原文始终是数据。 */ import type { NotificationLocale } from "../../../shared/interface.js"; import type { KindText } from "./type.js"; /** 毫秒 → 指定语言的可读耗时。 */ export declare function formatDurationForLocale(ms: number, locale: NotificationLocale): string; /** 毫秒 → 中文可读耗时;保留旧导出给现有调用方。 */ export declare function formatDuration(ms: number): string; /** 工具 ID 原样展示;保留旧导出签名供现有消费方使用。 */ export declare function prettyToolName(name?: string): string; export type TranslatedKind = "ask" | "question" | "done" | "subagent-done" | "error" | "turn-end"; /** 生成六类通知的同构字典;正文只实现一次,两个语言包只提供产品词。 */ export declare function getNotifyKinds(locale: NotificationLocale): Record; /** 旧导出:中文默认字典。 */ export declare const NOTIFY_KINDS: Record;