import * as React from 'react'; import type { Media, Theme } from '../../types/props.js'; export type MediaSceneSwitcherV2SemanticName = 'root' | 'header' | 'title' | 'subtitle' | 'container' | 'tabList' | 'tabItem' | 'tabTitle' | 'tabDescription' | 'mediaWrapper' | 'media' | 'swiper' | 'slide' | 'slideMedia' | 'slideContent'; /** * 场景项数据接口 */ export interface MediaSceneSwitcherV2Item { /** 场景标题 */ title: string; /** 场景描述 */ description?: string; /** 场景媒体(图片/视频) */ media: { mobile?: Media; tablet?: Media; laptop?: Media; desktop?: Media; lgDesktop?: Media; }; } /** * 布局模式 * - left: 左文右图(laptop+ 默认) * - right: 左图右文 * - top: 上图下文(swiper 卡片模式) */ export type MediaSceneSwitcherV2Layout = 'left' | 'right' | 'top'; /** * MediaSceneSwitcherV2 业务组件数据接口 */ export interface MediaSceneSwitcherV2Data { /** 主题 */ theme?: Theme; /** 主标题 */ title?: string; /** 副标题 */ subtitle?: string; /** 场景列表 */ items: MediaSceneSwitcherV2Item[]; /** 默认选中的场景索引 */ defaultActiveIndex?: number; /** 布局模式,默认 text-left */ layout?: MediaSceneSwitcherV2Layout; /** 是否开启自动轮播,默认 true */ autoplay?: boolean; /** 自动轮播间隔时间(毫秒),默认 3000 */ autoplayDelay?: number; } export interface MediaSceneSwitcherV2Props extends React.HTMLAttributes { /** 业务数据 */ data: MediaSceneSwitcherV2Data; /** 语义化类名覆盖 */ classNames?: Partial>; /** 场景切换回调 */ onSceneChange?: (index: number, scene: MediaSceneSwitcherV2Item) => void; } declare const _default: any; export default _default;