export type UseMessageTextStreamingProps = { letterIntervalMs?: number; renderingLetterCount?: number; text: string; }; /** * A hook that returns text in a streamed, typewriter fashion. The speed of streaming is * configurable. * @param {number} [letterIntervalMs=30] - The timeout between each typing animation in milliseconds. * @param {number} [renderingLetterCount=2] - The number of letters to be rendered each time we update. * @param {string} text - The text that we want to render in a typewriter fashion. * @returns {{ streamedMessageText: string, skipAnimation: () => void }} - A substring of the text property, up until we've finished rendering the typewriter animation. Also returns a method to skip the animation and render the full current text immediately. */ export declare const useMessageTextStreaming: ({ renderingLetterCount, letterIntervalMs, text, }: UseMessageTextStreamingProps) => { readonly streamedMessageText: string; readonly skipAnimation: import("../hooks/use-stable-callback").StableCallback<[], void>; }; export type StreamingMessageRef = Pick, 'skipAnimation'>; export declare const StreamingMessage: import("react").ForwardRefExoticComponent<{ text: string; } & UseMessageTextStreamingProps & import("react").RefAttributes>; //# sourceMappingURL=streaming-message.d.ts.map