@assistant-ui/react
Version:
React components for AI chat.
16 lines • 1.25 kB
TypeScript
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton";
import { useThreadSuggestion } from "../../primitive-hooks/thread/useThreadSuggestion";
/**
* @deprecated Use `ThreadPrimitive.Suggestion.Props` instead. This will be removed in 0.6.
*/
export type ThreadPrimitiveSuggestionProps = ThreadPrimitiveSuggestion.Props;
export declare namespace ThreadPrimitiveSuggestion {
type Element = ActionButtonElement;
type Props = ActionButtonProps<typeof useThreadSuggestion>;
}
export declare const ThreadPrimitiveSuggestion: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
} & {
asChild?: boolean;
}, "ref"> & import("../../primitive-hooks/thread/useThreadSuggestion").UseApplyThreadSuggestionProps & import("react").RefAttributes<HTMLButtonElement>>;
//# sourceMappingURL=ThreadSuggestion.d.ts.map