@assistant-ui/react
Version:
React components for AI chat.
58 lines • 1.95 kB
TypeScript
import { ReadonlyStore } from "../ReadonlyStore";
import { UseBoundStore } from "zustand";
import { ThreadListItemRuntime } from "../../api/ThreadListItemRuntime";
import { ThreadListItemState } from "../../api/ThreadListItemRuntime";
export type ThreadListItemContextValue = {
useThreadListItemRuntime: UseBoundStore<ReadonlyStore<ThreadListItemRuntime>>;
useThreadListItem: UseBoundStore<ReadonlyStore<ThreadListItemState>>;
};
export declare const ThreadListItemContext: import("react").Context<ThreadListItemContextValue | null>;
export declare const useThreadListItemContext: {
(options?: {
optional?: false | undefined;
} | undefined): ThreadListItemContextValue;
(options?: {
optional?: boolean | undefined;
} | undefined): ThreadListItemContextValue | null;
};
export declare function useThreadListItemRuntime(options?: {
optional?: false | undefined;
}): ThreadListItemRuntime;
export declare function useThreadListItemRuntime(options?: {
optional?: boolean | undefined;
}): ThreadListItemRuntime | null;
export declare const useThreadListItem: {
(): Readonly<{
threadId: string;
title?: string;
}>;
<TSelected>(selector: (state: Readonly<{
threadId: string;
title?: string;
}>) => TSelected): TSelected;
(options: {
optional: true;
}): Readonly<{
threadId: string;
title?: string;
}> | null;
<TSelected>(options: {
optional: true;
selector?: (state: Readonly<{
threadId: string;
title?: string;
}>) => TSelected;
}): TSelected | null;
}, useThreadListItemStore: {
(): ReadonlyStore<Readonly<{
threadId: string;
title?: string;
}>>;
(options: {
optional: true;
}): ReadonlyStore<Readonly<{
threadId: string;
title?: string;
}>> | null;
};
//# sourceMappingURL=ThreadListItemContext.d.ts.map