export interface NotifyOptions { /** 到顶部的距离 */ top?: number /** 主题类型 */ type?: NotifyType /** 字体颜色 */ color?: string /** 背景颜色 */ bgColor?: string /** 自定义图标 */ icon?: string /** 展示的文字内容 */ message?: string /** 展示时长,为 0 时不消失 */ duration?: number /** 字体大小 */ fontSize?: number | string /** 是否留出顶部安全距离 */ safeAreaInsetTop?: boolean /** 关闭后的回调函数 */ complete?: () => void } /** HyNotify 组件实例暴露的方法 */ export interface INotifyExpose { /** * 显示 Notify 提示 * @param options Notify 配置选项 */ show: (options: NotifyOptions) => void /** * 关闭 Notify 提示 */ close: () => void }