import React from 'react'; import type { NotificationType, ObNotificationArgs } from './interface'; import type { ArgsProps } from 'antd/es/notification/interface'; export declare const OB_NOTIFICATION_DEFAULT_CONFIG: { placement: "bottomLeft"; bottom: number; stack: { threshold: number; gap: number; }; pauseOnHover: boolean; closable: boolean; }; /** * 解析自动关闭时长,优先级:单次调用 duration > 已配置的 duration(由 * `getConfiguredNotificationDuration` 统一解析)> 内置策略。 */ export declare const resolveDuration: (type: NotificationType, description: React.ReactNode | undefined, args: ObNotificationArgs, configuredDuration?: number) => number | null; export interface WrapNotificationArgsOptions { type: NotificationType; args: ObNotificationArgs; prefixCls?: string; /** 已配置的默认自动关闭时长(实例级优先于全局),未传时回退到内置策略 */ configuredDuration?: number; } export declare const wrapNotificationArgs: ({ type, args, prefixCls, configuredDuration, }: WrapNotificationArgsOptions) => ArgsProps;