import { ReactNode, ComponentPropsWithoutRef, MouseEvent } from 'react'; export interface TickerItem { additionals?: ReactNode[]; info?: boolean; multiple?: boolean; text?: ReactNode; title?: string; warning?: boolean; error?: boolean; onClick?: (item: TickerItem, currentIndex: number, e: MouseEvent) => void; } declare type TickerAttributes = ComponentPropsWithoutRef<'div'>; export interface TickerProps extends Omit { /** * Set which to display * @default 0 */ activeIndex?: number; /** * Set Ticker to autoplay. Auto slide stops when Ticker is focused or hovered for accessibiliity purpose. * @default true */ autoPlay?: boolean; /** * To pass className to set custom css style */ className?: string; /** * Add Ticker items * @default [] */ items?: TickerItem[]; /** * Set transition duration before sliding to next index in ms * @default 3000 */ slideDuration?: number; /** * Set title of Ticker */ title?: string; /** * To apply warning */ warning?: boolean; /** * Action when indidcator is clicked * @default () => {} */ onClickIndicator?: (index: number) => void; /** * Action when close button clicked. Close button will be shown when this is set. */ onClose?: (item: TickerItem, currentIndex: number, e: MouseEvent) => void; } export {};