@assistant-ui/react 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react from 'react';
2
- import { FC, ReactNode, PropsWithChildren, ComponentType, ComponentPropsWithoutRef } from 'react';
2
+ import { FC, PropsWithChildren, ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
3
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
4
  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 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
5
  import { Primitive } from '@radix-ui/react-primitive';
6
+ 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-BLcKtagX.js';
7
+ export { l as AppendContentPart, i as AssistantMessage, m as TextContentPart, k as UserContentPart, j as UserMessage } from './ThreadActions-BLcKtagX.js';
7
8
  import 'zod';
8
9
 
9
10
  type UseActionBarCopyProps = {
@@ -73,61 +74,80 @@ type UseApplyThreadSuggestionProps = {
73
74
  };
74
75
  declare const useThreadSuggestion: ({ prompt, autoSend, }: UseApplyThreadSuggestionProps) => (() => void) | null;
75
76
 
76
- declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
77
+ type UseActionBarFloatStatusProps = {
78
+ hideWhenRunning?: boolean | undefined;
79
+ autohide?: "always" | "not-last" | "never" | undefined;
80
+ autohideFloat?: "always" | "single-branch" | "never" | undefined;
81
+ };
82
+ declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
77
83
  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;
78
84
  } & {
79
85
  asChild?: boolean;
80
- }, "ref"> & react.RefAttributes<HTMLDivElement>>;
86
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
81
87
 
82
- type ThreadEmptyProps = {
83
- children: ReactNode;
84
- };
85
- declare const ThreadEmpty: FC<ThreadEmptyProps>;
88
+ declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
89
+ 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;
90
+ } & {
91
+ asChild?: boolean;
92
+ }, "ref"> & {
93
+ copiedDuration?: number;
94
+ } & react.RefAttributes<HTMLButtonElement>>;
86
95
 
87
- type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
88
- declare const ThreadIf: FC<ThreadIfProps>;
96
+ declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
97
+ 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;
98
+ } & {
99
+ asChild?: boolean;
100
+ }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
89
101
 
90
- declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
91
- 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;
102
+ declare const ActionBarEdit: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
103
+ 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;
92
104
  } & {
93
105
  asChild?: boolean;
94
- }, "ref"> & {
95
- autoScroll?: boolean;
106
+ }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
107
+
108
+ declare namespace index$6 {
109
+ export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarReload as Reload, ActionBarRoot as Root };
110
+ }
111
+
112
+ type AssistantModalRootProps = PopoverPrimitive.PopoverProps;
113
+ declare const AssistantModalRoot: FC<AssistantModalRootProps>;
114
+
115
+ declare const AssistantModalTrigger: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
116
+
117
+ declare const AssistantModalContent: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
118
+ dissmissOnInteractOutside?: boolean;
96
119
  } & react.RefAttributes<HTMLDivElement>>;
97
120
 
98
- type ThreadMessagesProps = {
99
- components: {
100
- Message: ComponentType;
101
- UserMessage?: ComponentType;
102
- EditComposer?: ComponentType;
103
- AssistantMessage?: ComponentType;
104
- } | {
105
- Message?: ComponentType;
106
- UserMessage: ComponentType;
107
- EditComposer?: ComponentType;
108
- AssistantMessage: ComponentType;
109
- };
110
- };
111
- declare const ThreadMessages: FC<ThreadMessagesProps>;
121
+ declare namespace index$5 {
122
+ export { AssistantModalContent as Content, AssistantModalRoot as Root, AssistantModalTrigger as Trigger };
123
+ }
112
124
 
113
- declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
125
+ declare const BranchPickerNext: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
114
126
  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;
115
127
  } & {
116
128
  asChild?: boolean;
117
129
  }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
118
130
 
119
- declare const ThreadSuggestion: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
131
+ declare const BranchPickerPrevious: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
120
132
  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;
121
133
  } & {
122
134
  asChild?: boolean;
135
+ }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
136
+
137
+ declare const BranchPickerCount: FC;
138
+
139
+ declare const BranchPickerNumber: FC;
140
+
141
+ declare const BranchPickerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
142
+ 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;
143
+ } & {
144
+ asChild?: boolean;
123
145
  }, "ref"> & {
124
- prompt: string;
125
- method: "replace";
126
- autoSend?: boolean;
127
- } & react.RefAttributes<HTMLButtonElement>>;
146
+ hideWhenSingleBranch?: boolean;
147
+ } & react.RefAttributes<HTMLDivElement>>;
128
148
 
129
- declare namespace index$5 {
130
- export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadSuggestion as Suggestion, ThreadViewport as Viewport };
149
+ declare namespace index$4 {
150
+ export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
131
151
  }
132
152
 
133
153
  declare const ComposerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
@@ -155,10 +175,28 @@ declare const ComposerCancel: react.ForwardRefExoticComponent<Omit<Omit<react.De
155
175
  type ComposerIfProps = PropsWithChildren<UseComposerIfProps>;
156
176
  declare const ComposerIf: FC<ComposerIfProps>;
157
177
 
158
- declare namespace index$4 {
178
+ declare namespace index$3 {
159
179
  export { ComposerCancel as Cancel, ComposerIf as If, ComposerInput as Input, ComposerRoot as Root, ComposerSend as Send };
160
180
  }
161
181
 
182
+ declare const ContentPartInProgressIndicator: FC;
183
+
184
+ type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
185
+ type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
186
+ declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
187
+
188
+ declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
189
+ ref?: ((instance: HTMLImageElement | 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<HTMLImageElement> | null | undefined;
190
+ } & {
191
+ asChild?: boolean;
192
+ }, "ref"> & react.RefAttributes<HTMLImageElement>>;
193
+
194
+ declare const ContentPartDisplay: FC;
195
+
196
+ declare namespace index$2 {
197
+ export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
198
+ }
199
+
162
200
  declare const MessageRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
163
201
  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;
164
202
  } & {
@@ -187,89 +225,67 @@ declare const MessageInProgress: react.ForwardRefExoticComponent<Omit<Omit<react
187
225
  asChild?: boolean;
188
226
  }, "ref"> & react.RefAttributes<HTMLSpanElement>>;
189
227
 
190
- declare namespace index$3 {
228
+ declare namespace index$1 {
191
229
  export { MessageContent as Content, MessageIf as If, MessageInProgress as InProgress, MessageRoot as Root };
192
230
  }
193
231
 
194
- declare const BranchPickerNext: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
195
- 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;
232
+ declare const ThreadRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
233
+ 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;
196
234
  } & {
197
235
  asChild?: boolean;
198
- }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
236
+ }, "ref"> & react.RefAttributes<HTMLDivElement>>;
199
237
 
200
- declare const BranchPickerPrevious: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
201
- 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
- } & {
203
- asChild?: boolean;
204
- }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
238
+ type ThreadEmptyProps = {
239
+ children: ReactNode;
240
+ };
241
+ declare const ThreadEmpty: FC<ThreadEmptyProps>;
205
242
 
206
- declare const BranchPickerCount: FC;
243
+ type ThreadIfProps = PropsWithChildren<UseThreadIfProps>;
244
+ declare const ThreadIf: FC<ThreadIfProps>;
207
245
 
208
- declare const BranchPickerNumber: FC;
246
+ type UseThreadViewportAutoScrollProps = {
247
+ autoScroll?: boolean | undefined;
248
+ };
209
249
 
210
- declare const BranchPickerRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
250
+ declare const ThreadViewport: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
211
251
  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;
212
252
  } & {
213
253
  asChild?: boolean;
214
- }, "ref"> & {
215
- hideWhenSingleBranch?: boolean;
216
- } & react.RefAttributes<HTMLDivElement>>;
217
-
218
- declare namespace index$2 {
219
- export { BranchPickerCount as Count, BranchPickerNext as Next, BranchPickerNumber as Number, BranchPickerPrevious as Previous, BranchPickerRoot as Root };
220
- }
254
+ }, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>>;
221
255
 
222
- type UseActionBarFloatStatusProps = {
223
- hideWhenRunning?: boolean | undefined;
224
- autohide?: "always" | "not-last" | "never" | undefined;
225
- autohideFloat?: "always" | "single-branch" | "never" | undefined;
256
+ type ThreadMessagesProps = {
257
+ components: {
258
+ Message: ComponentType;
259
+ UserMessage?: ComponentType;
260
+ EditComposer?: ComponentType;
261
+ AssistantMessage?: ComponentType;
262
+ } | {
263
+ Message?: ComponentType;
264
+ UserMessage: ComponentType;
265
+ EditComposer?: ComponentType;
266
+ AssistantMessage: ComponentType;
267
+ };
226
268
  };
227
- declare const ActionBarRoot: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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;
229
- } & {
230
- asChild?: boolean;
231
- }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>>;
232
-
233
- declare const ActionBarCopy: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
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;
235
- } & {
236
- asChild?: boolean;
237
- }, "ref"> & {
238
- copiedDuration?: number;
239
- } & react.RefAttributes<HTMLButtonElement>>;
269
+ declare const ThreadMessages: FC<ThreadMessagesProps>;
240
270
 
241
- declare const ActionBarReload: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
271
+ declare const ThreadScrollToBottom: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
242
272
  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;
243
273
  } & {
244
274
  asChild?: boolean;
245
275
  }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
246
276
 
247
- declare const ActionBarEdit: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
277
+ declare const ThreadSuggestion: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
248
278
  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;
249
279
  } & {
250
280
  asChild?: boolean;
251
- }, "ref"> & react.RefAttributes<HTMLButtonElement>>;
252
-
253
- declare namespace index$1 {
254
- export { ActionBarCopy as Copy, ActionBarEdit as Edit, ActionBarReload as Reload, ActionBarRoot as Root };
255
- }
256
-
257
- declare const ContentPartInProgressIndicator: FC;
258
-
259
- type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>;
260
- type ContentPartTextProps = Omit<PrimitiveSpanProps, "children">;
261
- declare const ContentPartText: react.ForwardRefExoticComponent<ContentPartTextProps & react.RefAttributes<HTMLSpanElement>>;
262
-
263
- declare const ContentPartImage: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
264
- ref?: ((instance: HTMLImageElement | 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<HTMLImageElement> | null | undefined;
265
- } & {
266
- asChild?: boolean;
267
- }, "ref"> & react.RefAttributes<HTMLImageElement>>;
268
-
269
- declare const ContentPartDisplay: FC;
281
+ }, "ref"> & {
282
+ prompt: string;
283
+ method: "replace";
284
+ autoSend?: boolean;
285
+ } & react.RefAttributes<HTMLButtonElement>>;
270
286
 
271
287
  declare namespace index {
272
- export { ContentPartDisplay as Display, ContentPartImage as Image, ContentPartInProgressIndicator as InProgressIndicator, ContentPartText as Text };
288
+ export { ThreadEmpty as Empty, ThreadIf as If, ThreadMessages as Messages, ThreadRoot as Root, ThreadScrollToBottom as ScrollToBottom, ThreadSuggestion as Suggestion, ThreadViewport as Viewport };
273
289
  }
274
290
 
275
291
  type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
@@ -352,4 +368,4 @@ declare namespace internal {
352
368
  export { internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
353
369
  }
354
370
 
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 };
371
+ export { index$6 as ActionBarPrimitive, AppendMessage, AssistantContentPart, index$5 as AssistantModalPrimitive, type AssistantRuntime, AssistantRuntimeProvider, index$4 as BranchPickerPrimitive, type ChatModelAdapter, type ChatModelRunOptions, index$3 as ComposerPrimitive, index$2 as ContentPartPrimitive, internal as INTERNAL, index$1 as MessagePrimitive, type ReactThreadRuntime, ThreadMessage, index 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 };