@assistant-ui/react
Version:
React components for AI chat.
33 lines • 2.34 kB
TypeScript
import { ComponentPropsWithoutRef, type FC } from "react";
import { SuggestionConfig } from "./thread-config";
declare const ThreadWelcome: FC;
declare const ThreadWelcomeMessageStyled: import("react").ForwardRefExoticComponent<Partial<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & import("react").RefAttributes<HTMLParagraphElement>>;
/**
* @deprecated Use `ThreadWelcome.Message.Props` instead. This will be removed in 0.6.
*/
export type ThreadWelcomeMessageProps = ThreadWelcomeMessage.Props;
declare namespace ThreadWelcomeMessage {
type Element = HTMLParagraphElement;
type Props = Omit<ComponentPropsWithoutRef<typeof ThreadWelcomeMessageStyled>, "children"> & {
message?: string | undefined;
};
}
declare const ThreadWelcomeMessage: import("react").ForwardRefExoticComponent<Omit<Omit<Partial<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & import("react").RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
message?: string | undefined;
} & import("react").RefAttributes<HTMLParagraphElement>>;
export type ThreadWelcomeSuggestionProps = {
suggestion: SuggestionConfig;
};
declare const exports: {
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
Center: import("react").ForwardRefExoticComponent<Partial<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & import("react").RefAttributes<HTMLDivElement>>;
Avatar: FC;
Message: import("react").ForwardRefExoticComponent<Omit<Omit<Partial<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & import("react").RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
message?: string | undefined;
} & import("react").RefAttributes<HTMLParagraphElement>>;
Suggestions: FC;
Suggestion: FC<ThreadWelcomeSuggestionProps>;
};
declare const _default: typeof ThreadWelcome & typeof exports;
export default _default;
//# sourceMappingURL=thread-welcome.d.ts.map