import { FC } from 'react'; import { TourContextValue } from './tour-context'; import { TourStepProps } from './tour-step'; export interface TourProps { /** * 自定义 class */ className?: string; /** * 关闭时的回调 */ onClose?: (activeIndex: number) => void; /** * 控制是否显示 */ visible?: boolean; /** * 步骤列表 */ steps?: TourContextValue['steps']; /** * 当前步骤 index 控制值,需要使用 onChange 获取值变化进行控制 */ activeIndex?: TourContextValue['activeIndex']; /** * 当前步骤发生变化时的回调 */ onChange?: (activeIndex: number) => void; } export declare const Tour: FC; /** * @public */ export type TourStepItem = Omit;