import * as React from 'react';
import type { BasicComponentProps } from "../../types";
export interface CnNoticeProps extends Omit<BasicComponentProps, 'title' | 'content'> {
    /**
     * 通告栏的类型
     * @default 'notice'
     */
    type?: 'notice' | 'warning' | 'error' | 'help' | 'success';
    /**
     * 开始滚动的延迟，单位 ms
     * @default 2000
     */
    delay?: number;
    /**
     * 滚动速度，单位 px/s
     * @default 50
     */
    speed?: number;
    /**
     * 公告内容
     */
    content: React.ReactNode;
    /**
     * 是否可关闭
     * @default false
     */
    closeable?: boolean;
    /**
     * 文本溢出样式
     * @default 'scroll'
     */
    overflowStyle?: 'scroll' | 'hidden';
    /**
     * 关闭时的回调
     */
    onClose?: () => void;
    /**
     * 点击回调
     */
    onClick?: () => void;
    /**
     * 额外操作区域，显示在关闭按钮左侧
     */
    extra?: React.ReactNode;
    /**
     * 左侧图标
     * @default <CnIcon type="horn-fill" />
     */
    icon?: React.ReactNode;
}
