import { FC } from 'react'; import { IntroContextValue } from './intro-context'; import { IntroSlideProps } from './intro-slide'; export type IntroSlideItem = Omit; export interface IntroProps { /** * 自定义 class */ className?: string; /** * slides 列表 */ slides?: IntroContextValue['slides']; /** * 当前 slide index 控制值,需要使用 onChange 获取值变化进行控制 */ activeIndex?: IntroContextValue['activeIndex']; /** * 控制是否显示 */ visible?: boolean; /** * 当前 slide 发生变化时的回调 */ onChange?: (activeIndex: number) => void; /** * 关闭时的回调 */ onClose?: (activeIndex: number) => void; /** * 点击末页 “开始” 按钮的回调 * * “开始” 按钮仅在不指定该回调情况下,改为退化为调用 onClose */ onStart?: () => void; } export declare const Intro: FC;