@assistant-ui/react
Version:
Open-source TypeScript/React library for building production-grade AI chat experiences
19 lines • 1.13 kB
TypeScript
import { type ActionButtonElement, type ActionButtonProps } from "../../utils/createActionButton.js";
declare const useThreadLoadEarlier: () => (() => void) | null;
export declare namespace ThreadPrimitiveLoadEarlier {
type Element = ActionButtonElement;
type Props = ActionButtonProps<typeof useThreadLoadEarlier>;
}
/**
* A button that loads the page before the first loaded message. Disabled
* while the runtime reports no earlier messages. A press while a page is
* loading joins that load, so the button stays enabled and keeps keyboard
* focus until the page lands; read `thread.isLoadingEarlier` to show progress.
*/
export declare const ThreadPrimitiveLoadEarlier: 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=ThreadLoadEarlier.d.ts.map