import React from "react"; import type { ScrollingType, OptionsType } from "../core"; export interface MethodType { /** * @description: Callback when the text reaches the end * @type: {() => void} * @requires: false */ onReachEnd?: () => void; /** * @description: Callback when the text changes * @type: {(index: number) => void} * @requires: false */ onChange?: (index: number) => void; /** * @description: Callback when the text starts scrolling * @type: {() => void} * @requires: false */ onStart?: () => void; /** * @description: Callback when the text stops scrolling * @type: {() => void} * @requires: false */ onStop?: () => void; /** * @description: Callback when the text is paused * @type: {() => void} * @requires: false */ onPause?: () => void; } interface ScrollingTextProps { options?: OptionsType & MethodType; ref?: React.Ref; children: React.ReactNode; } declare const ScrollingText: React.FC; export default ScrollingText;