markdown-flow-ui
Version:
A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support
20 lines (19 loc) • 498 B
TypeScript
interface UseTypewriterProps {
content?: string;
typingSpeed?: number;
disabled?: boolean;
}
interface Segment {
content: string;
isMarkdown: boolean;
type?: string;
}
declare const useTypewriterStateMachine: ({ content, typingSpeed, disabled, }?: UseTypewriterProps) => {
displayContent: string;
isTyping: boolean;
isComplete: boolean;
reset: () => void;
start: () => void;
getSegments: () => Segment[];
};
export default useTypewriterStateMachine;