Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ui.ts

28 lines943 Bytes

1// Barrel entry for the `@tanstack/ai-react/ui` subpath. The JSX
2// implementation lives under `./chat-ui`; this `.ts` re-export exists so
3// kiira's dist->src resolution (which maps `dist/esm/ui.d.ts` to `src/ui.ts`,
4// never a directory index) can type-check docs snippets that import this
5// subpath.
6export {
7 createChatUI,
8 type ChatUIComponents,
9 type ChatUIFactoryConfig,
10 type ChatUIHost,
11 type ChatUIQueueItem,
12 type InputProps,
13 type InterruptProps,
14 type LayoutProps,
15 type MessageProps,
16 type PartProps,
17 type QueueProps,
18 type SubagentPartsProps,
19 type SubagentProps,
20 type ToolProps,
21} from './chat-ui/create-ui'
22export { createChatHook } from './chat-ui/create-chat-hook'
23export {
24 createChatHookContexts,
25 type ChatUIContexts,
26} from './chat-ui/create-ui-contexts'
27export { TextPart, type TextPartProps } from './chat-ui/text-part'
28export { ThinkingPart, type ThinkingPartProps } from './chat-ui/thinking-part'