@assistant-ui/react 0.1.8 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -1,22 +1,77 @@
1
1
  import * as react from 'react';
2
2
  import { FC, ReactNode, PropsWithChildren, ComponentType, ComponentPropsWithoutRef } from 'react';
3
3
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
4
- import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as Unsubscribe, M as ModelConfigProvider, e as ThreadMessage, f as ModelConfig, A as AssistantContentPart, g as AppendMessage } from './Thread-CoxBELWy.mjs';
5
- export { k as AppendContentPart, h as AssistantMessage, l as TextContentPart, j as UserContentPart, i as UserMessage } from './Thread-CoxBELWy.mjs';
4
+ import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as ThreadActionsState, e as Unsubscribe, M as ModelConfigProvider, f as ThreadMessage, g as ModelConfig, A as AssistantContentPart, h as AppendMessage } from './ThreadActions-DqqhRbf1.mjs';
5
+ export { l as AppendContentPart, i as AssistantMessage, m as TextContentPart, k as UserContentPart, j as UserMessage } from './ThreadActions-DqqhRbf1.mjs';
6
6
  import { Primitive } from '@radix-ui/react-primitive';
7
7
  import 'zod';
8
8
 
9
- declare const useCopyMessage: ({ copiedDuration }: {
10
- copiedDuration?: number | undefined;
11
- }) => (() => void) | null;
9
+ type UseActionBarCopyProps = {
10
+ copiedDuration?: number;
11
+ };
12
+ declare const useActionBarCopy: ({ copiedDuration, }?: UseActionBarCopyProps) => (() => void) | null;
13
+
14
+ declare const useActionBarEdit: () => (() => void) | null;
15
+
16
+ declare const useActionBarReload: () => (() => void) | null;
17
+
18
+ declare const useBranchPickerCount: () => number;
19
+
20
+ declare const useBranchPickerNext: () => (() => void) | null;
21
+
22
+ declare const useBranchPickerNumber: () => number;
23
+
24
+ declare const useBranchPickerPrevious: () => (() => void) | null;
25
+
26
+ declare const useComposerCancel: () => (() => void) | null;
27
+
28
+ type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
29
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
30
+ }[Keys];
31
+
32
+ type ComposerIfFilters = {
33
+ editing: boolean | undefined;
34
+ };
35
+ type UseComposerIfProps = RequireAtLeastOne<ComposerIfFilters>;
36
+ declare const useComposerIf: (props: UseComposerIfProps) => boolean;
12
37
 
13
- declare const useReloadMessage: () => (() => void) | null;
38
+ declare const useComposerSend: () => (() => void) | null;
14
39
 
15
- declare const useBeginMessageEdit: () => (() => void) | null;
40
+ declare const useContentPartDisplay: () => react.ReactNode;
41
+
42
+ declare const useContentPartImage: () => string;
43
+
44
+ declare const useContentPartInProgressIndicator: () => react.ReactNode;
45
+
46
+ declare const useContentPartText: () => string;
47
+
48
+ type MessageIfFilters = {
49
+ user: boolean | undefined;
50
+ assistant: boolean | undefined;
51
+ hasBranches: boolean | undefined;
52
+ copied: boolean | undefined;
53
+ lastOrHover: boolean | undefined;
54
+ };
55
+ type UseMessageIfProps = RequireAtLeastOne<MessageIfFilters>;
56
+ declare const useMessageIf: (props: UseMessageIfProps) => boolean;
57
+
58
+ declare const useThreadEmpty: () => boolean;
59
+
60
+ type ThreadIfFilters = {
61
+ empty: boolean | undefined;
62
+ running: boolean | undefined;
63
+ };
64
+ type UseThreadIfProps = RequireAtLeastOne<ThreadIfFilters>;
65
+ declare const useThreadIf: (props: UseThreadIfProps) => boolean;
16
66
 
17
- declare const useGoToNextBranch: () => (() => void) | null;
67
+ declare const useThreadScrollToBottom: () => (() => void) | null;
18
68
 
19
- declare const useGoToPreviousBranch: () => (() => void) | null;
69
+ type UseApplyThreadSuggestionProps = {
70
+ prompt: string;
71
+ method: "replace";
72
+ autoSend?: boolean;
73
+ };
74
+ declare const useThreadSuggestion: ({ prompt, autoSend, }: UseApplyThreadSuggestionProps) => (() => void) | null;
20
75
 
21
76
  declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
77
  ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
@@ -29,15 +84,7 @@ type ThreadEmptyProps = {
29
84
  };
30
85
  declare const ThreadEmpty: FC<ThreadEmptyProps>;
31
86
 
32
- type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
33
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
34
- }[Keys];
35
-
36
- type ThreadIfFilters = {
37
- empty: boolean | undefined;
38
- running: boolean | undefined;
39
- };
40
- type ThreadIfProps = PropsWithChildren<RequireAtLeastOne<ThreadIfFilters>>;
87
+ type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
41
88
  declare const ThreadIf: FC<ThreadIfProps>;
42
89
 
43
90
  declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -105,10 +152,7 @@ declare const ComposerCancel: react.ForwardRefExoticComponent<Omit<Omit<react.De
105
152
  asChild?: boolean;
106
153
  }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
107
154
 
108
- type ComposerIfFilters = {
109
- editing: boolean | undefined;
110
- };
111
- type ComposerIfProps = PropsWithChildren<RequireAtLeastOne<ComposerIfFilters>>;
155
+ type ComposerIfProps = PropsWithChildren<UseComposerIfProps>;
112
156
  declare const ComposerIf: FC<ComposerIfProps>;
113
157
 
114
158
  declare namespace index$4 {
@@ -121,16 +165,7 @@ declare const MessageRoot: react.ForwardRefExoticComponent<Omit<Omit<react.Detai
121
165
  asChild?: boolean;
122
166
  }, "ref"> & react.RefAttributes<HTMLDivElement>>;
123
167
 
124
- type MessageIfFilters = {
125
- user: boolean | undefined;
126
- assistant: boolean | undefined;
127
- hasBranches: boolean | undefined;
128
- copied: boolean | undefined;
129
- lastOrHover: boolean | undefined;
130
- };
131
- type MessageIfProps = RequireAtLeastOne<MessageIfFilters> & {
132
- children: ReactNode;
133
- };
168
+ type MessageIfProps = PropsWithChildren<UseMessageIfProps>;
134
169
  declare const MessageIf: FC<MessageIfProps>;
135
170
 
136
171
  type MessageContentProps = {
@@ -184,24 +219,24 @@ declare namespace index$2 {
184
219
  export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
185
220
  }
186
221
 
222
+ type UseActionBarFloatStatusProps = {
223
+ hideWhenRunning?: boolean | undefined;
224
+ autohide?: "always" | "not-last" | "never" | undefined;
225
+ autohideFloat?: "always" | "single-branch" | "never" | undefined;
226
+ };
187
227
  declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
188
228
  ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
189
229
  } & {
190
230
  asChild?: boolean;
191
- }, "ref"> & {
192
- hideWhenRunning?: boolean;
193
- autohide?: "always" | "not-last" | "never";
194
- autohideFloat?: "always" | "single-branch" | "never";
195
- } & react.RefAttributes<HTMLDivElement>>;
231
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
196
232
 
197
- type ActionBarCopyProps = {
198
- copiedDuration?: number;
199
- };
200
233
  declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
201
234
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
202
235
  } & {
203
236
  asChild?: boolean;
204
- }, "ref"> & ActionBarCopyProps & react.RefAttributes<HTMLButtonElement>>;
237
+ }, "ref"> & {
238
+ copiedDuration?: number;
239
+ } & react.RefAttributes<HTMLButtonElement>>;
205
240
 
206
241
  declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
207
242
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
@@ -237,7 +272,7 @@ declare namespace index {
237
272
  export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
238
273
  }
239
274
 
240
- type ThreadRuntime = Readonly<ThreadState & {
275
+ type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
241
276
  subscribe: (callback: () => void) => Unsubscribe;
242
277
  }>;
243
278
 
@@ -317,4 +352,4 @@ declare namespace internal {
317
352
  export { internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
318
353
  }
319
354
 
320
- export { index$1 as ActionBarPrimitive, AppendMessage, AssistantContentPart, type AssistantRuntime, AssistantRuntimeProvider, index$2 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$4 as ComposerPrimitive, index as ContentPartPrimitive, internal as INTERNAL, index$3 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index$5 as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useBeginMessageEdit, useCopyMessage, useGoToNextBranch, useGoToPreviousBranch, useLocalRuntime, useReloadMessage };
355
+ export { index$1 as ActionBarPrimitive, AppendMessage, AssistantContentPart, type AssistantRuntime, AssistantRuntimeProvider, index$2 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$4 as ComposerPrimitive, index as ContentPartPrimitive, internal as INTERNAL, index$3 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index$5 as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useActionBarCopy, useActionBarEdit, useActionBarReload, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerIf, useComposerSend, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageIf, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
package/dist/index.d.ts CHANGED
@@ -1,22 +1,77 @@
1
1
  import * as react from 'react';
2
2
  import { FC, ReactNode, PropsWithChildren, ComponentType, ComponentPropsWithoutRef } from 'react';
3
3
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
4
- import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as Unsubscribe, M as ModelConfigProvider, e as ThreadMessage, f as ModelConfig, A as AssistantContentPart, g as AppendMessage } from './Thread-CoxBELWy.js';
5
- export { k as AppendContentPart, h as AssistantMessage, l as TextContentPart, j as UserContentPart, i as UserMessage } from './Thread-CoxBELWy.js';
4
+ import { T as TextContentPartComponent, I as ImageContentPartComponent, U as UIContentPartComponent, a as ToolCallContentPartComponent, b as ToolCallContentPartProps, c as ThreadState, d as ThreadActionsState, e as Unsubscribe, M as ModelConfigProvider, f as ThreadMessage, g as ModelConfig, A as AssistantContentPart, h as AppendMessage } from './ThreadActions-DqqhRbf1.js';
5
+ export { l as AppendContentPart, i as AssistantMessage, m as TextContentPart, k as UserContentPart, j as UserMessage } from './ThreadActions-DqqhRbf1.js';
6
6
  import { Primitive } from '@radix-ui/react-primitive';
7
7
  import 'zod';
8
8
 
9
- declare const useCopyMessage: ({ copiedDuration }: {
10
- copiedDuration?: number | undefined;
11
- }) => (() => void) | null;
9
+ type UseActionBarCopyProps = {
10
+ copiedDuration?: number;
11
+ };
12
+ declare const useActionBarCopy: ({ copiedDuration, }?: UseActionBarCopyProps) => (() => void) | null;
13
+
14
+ declare const useActionBarEdit: () => (() => void) | null;
15
+
16
+ declare const useActionBarReload: () => (() => void) | null;
17
+
18
+ declare const useBranchPickerCount: () => number;
19
+
20
+ declare const useBranchPickerNext: () => (() => void) | null;
21
+
22
+ declare const useBranchPickerNumber: () => number;
23
+
24
+ declare const useBranchPickerPrevious: () => (() => void) | null;
25
+
26
+ declare const useComposerCancel: () => (() => void) | null;
27
+
28
+ type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
29
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
30
+ }[Keys];
31
+
32
+ type ComposerIfFilters = {
33
+ editing: boolean | undefined;
34
+ };
35
+ type UseComposerIfProps = RequireAtLeastOne<ComposerIfFilters>;
36
+ declare const useComposerIf: (props: UseComposerIfProps) => boolean;
12
37
 
13
- declare const useReloadMessage: () => (() => void) | null;
38
+ declare const useComposerSend: () => (() => void) | null;
14
39
 
15
- declare const useBeginMessageEdit: () => (() => void) | null;
40
+ declare const useContentPartDisplay: () => react.ReactNode;
41
+
42
+ declare const useContentPartImage: () => string;
43
+
44
+ declare const useContentPartInProgressIndicator: () => react.ReactNode;
45
+
46
+ declare const useContentPartText: () => string;
47
+
48
+ type MessageIfFilters = {
49
+ user: boolean | undefined;
50
+ assistant: boolean | undefined;
51
+ hasBranches: boolean | undefined;
52
+ copied: boolean | undefined;
53
+ lastOrHover: boolean | undefined;
54
+ };
55
+ type UseMessageIfProps = RequireAtLeastOne<MessageIfFilters>;
56
+ declare const useMessageIf: (props: UseMessageIfProps) => boolean;
57
+
58
+ declare const useThreadEmpty: () => boolean;
59
+
60
+ type ThreadIfFilters = {
61
+ empty: boolean | undefined;
62
+ running: boolean | undefined;
63
+ };
64
+ type UseThreadIfProps = RequireAtLeastOne<ThreadIfFilters>;
65
+ declare const useThreadIf: (props: UseThreadIfProps) => boolean;
16
66
 
17
- declare const useGoToNextBranch: () => (() => void) | null;
67
+ declare const useThreadScrollToBottom: () => (() => void) | null;
18
68
 
19
- declare const useGoToPreviousBranch: () => (() => void) | null;
69
+ type UseApplyThreadSuggestionProps = {
70
+ prompt: string;
71
+ method: "replace";
72
+ autoSend?: boolean;
73
+ };
74
+ declare const useThreadSuggestion: ({ prompt, autoSend, }: UseApplyThreadSuggestionProps) => (() => void) | null;
20
75
 
21
76
  declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
77
  ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
@@ -29,15 +84,7 @@ type ThreadEmptyProps = {
29
84
  };
30
85
  declare const ThreadEmpty: FC<ThreadEmptyProps>;
31
86
 
32
- type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
33
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
34
- }[Keys];
35
-
36
- type ThreadIfFilters = {
37
- empty: boolean | undefined;
38
- running: boolean | undefined;
39
- };
40
- type ThreadIfProps = PropsWithChildren<RequireAtLeastOne<ThreadIfFilters>>;
87
+ type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
41
88
  declare const ThreadIf: FC<ThreadIfProps>;
42
89
 
43
90
  declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -105,10 +152,7 @@ declare const ComposerCancel: react.ForwardRefExoticComponent<Omit<Omit<react.De
105
152
  asChild?: boolean;
106
153
  }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
107
154
 
108
- type ComposerIfFilters = {
109
- editing: boolean | undefined;
110
- };
111
- type ComposerIfProps = PropsWithChildren<RequireAtLeastOne<ComposerIfFilters>>;
155
+ type ComposerIfProps = PropsWithChildren<UseComposerIfProps>;
112
156
  declare const ComposerIf: FC<ComposerIfProps>;
113
157
 
114
158
  declare namespace index$4 {
@@ -121,16 +165,7 @@ declare const MessageRoot: react.ForwardRefExoticComponent<Omit<Omit<react.Detai
121
165
  asChild?: boolean;
122
166
  }, "ref"> & react.RefAttributes<HTMLDivElement>>;
123
167
 
124
- type MessageIfFilters = {
125
- user: boolean | undefined;
126
- assistant: boolean | undefined;
127
- hasBranches: boolean | undefined;
128
- copied: boolean | undefined;
129
- lastOrHover: boolean | undefined;
130
- };
131
- type MessageIfProps = RequireAtLeastOne<MessageIfFilters> & {
132
- children: ReactNode;
133
- };
168
+ type MessageIfProps = PropsWithChildren<UseMessageIfProps>;
134
169
  declare const MessageIf: FC<MessageIfProps>;
135
170
 
136
171
  type MessageContentProps = {
@@ -184,24 +219,24 @@ declare namespace index$2 {
184
219
  export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
185
220
  }
186
221
 
222
+ type UseActionBarFloatStatusProps = {
223
+ hideWhenRunning?: boolean | undefined;
224
+ autohide?: "always" | "not-last" | "never" | undefined;
225
+ autohideFloat?: "always" | "single-branch" | "never" | undefined;
226
+ };
187
227
  declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
188
228
  ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
189
229
  } & {
190
230
  asChild?: boolean;
191
- }, "ref"> & {
192
- hideWhenRunning?: boolean;
193
- autohide?: "always" | "not-last" | "never";
194
- autohideFloat?: "always" | "single-branch" | "never";
195
- } & react.RefAttributes<HTMLDivElement>>;
231
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
196
232
 
197
- type ActionBarCopyProps = {
198
- copiedDuration?: number;
199
- };
200
233
  declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
201
234
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
202
235
  } & {
203
236
  asChild?: boolean;
204
- }, "ref"> & ActionBarCopyProps & react.RefAttributes<HTMLButtonElement>>;
237
+ }, "ref"> & {
238
+ copiedDuration?: number;
239
+ } & react.RefAttributes<HTMLButtonElement>>;
205
240
 
206
241
  declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
207
242
  ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
@@ -237,7 +272,7 @@ declare namespace index {
237
272
  export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
238
273
  }
239
274
 
240
- type ThreadRuntime = Readonly<ThreadState & {
275
+ type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
241
276
  subscribe: (callback: () => void) => Unsubscribe;
242
277
  }>;
243
278
 
@@ -317,4 +352,4 @@ declare namespace internal {
317
352
  export { internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
318
353
  }
319
354
 
320
- export { index$1 as ActionBarPrimitive, AppendMessage, AssistantContentPart, type AssistantRuntime, AssistantRuntimeProvider, index$2 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$4 as ComposerPrimitive, index as ContentPartPrimitive, internal as INTERNAL, index$3 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index$5 as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useBeginMessageEdit, useCopyMessage, useGoToNextBranch, useGoToPreviousBranch, useLocalRuntime, useReloadMessage };
355
+ export { index$1 as ActionBarPrimitive, AppendMessage, AssistantContentPart, type AssistantRuntime, AssistantRuntimeProvider, index$2 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$4 as ComposerPrimitive, index as ContentPartPrimitive, internal as INTERNAL, index$3 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index$5 as ThreadPrimitive, type ThreadRuntime, Unsubscribe, useActionBarCopy, useActionBarEdit, useActionBarReload, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerIf, useComposerSend, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageIf, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };