import type { NotificationType, ObNotificationDuration } from './interface'; /** * 更新全局默认自动关闭时长,语义与 antd notification.config 保持一致: * 传数字时整体覆盖,传对象时按类型合并,未传则保持不变。 */ export declare const setGlobalNotificationDuration: (duration?: ObNotificationDuration) => void; /** 清空全局配置,供测试重置使用 */ export declare const resetGlobalNotificationDuration: () => void; /** * 解析已配置的默认自动关闭时长(不含内置策略,返回值 undefined 表示需要回退到内置策略)。 * * `durations` 按优先级从高到低传入;最后一级固定为 notification.config 的全局配置。 * 按类型逐级回退:某一级未命中该类型时继续向下一级查找,而不是整份配置直接胜出。 */ export declare const getConfiguredNotificationDuration: (type: NotificationType, ...durations: (ObNotificationDuration | undefined)[]) => number | undefined;