import type { RegionConfig, IPRedirectBannerCopy } from './type.js'; /** 横幅样式配置 */ export type RegionBannerStyles = { /** 背景色,默认 #fff */ backgroundColor?: string; /** 按钮圆角,默认 9999px */ buttonBorderRadius?: string; /** 文案字号,默认 14px */ fontSize?: string; /** Stay Here 按钮背景色,默认 #000 */ stayButtonBgColor?: string; /** Stay Here 按钮文字颜色,默认 #fff */ stayButtonTextColor?: string; /** Switch Site 按钮边框颜色,默认 #000 */ switchButtonBorderColor?: string; /** Switch Site 按钮文字颜色,默认 #000 */ switchButtonTextColor?: string; /** 大屏幕(≥1920px)最大宽度,默认 1664px */ maxWidth?: string; }; export type RegionBannerProps = { /** 控制横幅显示/隐藏 */ visible: boolean; /** 横幅状态变化回调 */ onVisibleChange: (visible: boolean) => void; /** 文案配置 */ copy: IPRedirectBannerCopy; /** 点击 Stay Here 按钮的回调 */ onStayHere: () => void; /** 点击 Switch Site 按钮的回调 */ onSwitchSite: () => void; /** 样式配置 */ styles?: RegionBannerStyles; /** 当前站点地区配置(用于显示国旗图标) */ currentRegion?: RegionConfig; /** 自定义类名 */ className?: string; }; export declare function RegionBanner({ visible, onVisibleChange, copy, onStayHere, onSwitchSite, styles: customStyles, currentRegion, className, }: RegionBannerProps): import("react/jsx-runtime").JSX.Element | null;