import { type ReactNode } from 'react'; /** * Spaces out the parts of a reply's UI that come in together, so they come in one after another * rather than at once. The counterpart of `AIUICascade` in StreamChatAI. */ export declare class AIUICascade { /** How long after the part before it a part comes in, in seconds. */ static readonly step = 0.1; /** The longest a part waits for the parts before it, in seconds. */ static readonly longestWait = 0.4; private next; /** How long a part that comes in at `now`, in seconds, waits for the parts before it. */ delay(now?: number): number; } /** * A reply's generated UI as a whole: it comes in when it first shows while the agent writes it, * and shows at once when it was written before, such as a reply from history. */ export declare const AIUIEntranceStage: ({ children, className, isStreaming, }: { children: ReactNode; /** Whether the agent is writing the UI as it first shows. */ isStreaming: boolean; className?: string; }) => import("react/jsx-runtime").JSX.Element; /** * What a part of a reply's generated UI needs to come in when it shows, for a renderer whose * part is its own element, which a wrapping box would take out of its layout: the props for that * element, and `scope`, to wrap what the part shows in, so what shows with it comes in with it. * The same entrance as `AIUIEntrance`'s. */ export declare const useAIUIEntrance: () => { props: { className: string; 'data-entrance': string; style: { transitionDelay: string; } | undefined; }; scope: (children: ReactNode) => import("react/jsx-runtime").JSX.Element; }; /** * Brings a part of a reply's generated UI in when it shows, such as when the agent writes it: * the part fades in, rising into place and coming into focus, after the parts that came in just * before it. What shows together with the reply's UI, or with a part around it, comes in with * that, so a reply written before it showed shows at once. With reduced motion it only fades. * * Renderers give it to each part they place. Every app component has it. */ export declare const AIUIEntrance: ({ children, className, }: { children: ReactNode; className?: string; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=AIUIEntrance.d.ts.map