@assistant-ui/react
Version:
Open-source TypeScript/React library for building production-grade AI chat experiences
26 lines • 1.33 kB
TypeScript
import { type ActionButtonElement, type ActionButtonProps } from "../../utils/createActionButton.js";
declare const useActionBarRefreshRun: () => (() => void) | null;
export declare namespace ActionBarPrimitiveRefreshRun {
type Element = ActionButtonElement;
type Props = ActionButtonProps<typeof useActionBarRefreshRun>;
}
/**
* A button that re-reads an assistant message whose run another tab or
* session is still writing, so the thread shows its latest stored state
* without a page reload. The thread also re-reads it on its own around the
* moment the run would cross `staleAfter`. It renders disabled unless
* Assistant Cloud reported the run in progress elsewhere, and while a
* refresh is in flight.
*
* @example
* ```tsx
* <ActionBarPrimitive.RefreshRun>Refresh</ActionBarPrimitive.RefreshRun>
* ```
*/
export declare const ActionBarPrimitiveRefreshRun: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
asChild?: boolean | undefined;
}, "ref"> & {
render?: import("react").ReactElement | undefined;
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
export {};
//# sourceMappingURL=ActionBarRefreshRun.d.ts.map