@assistant-ui/react 0.5.41 → 0.5.42

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -111,8 +111,16 @@ declare class MessageRepository {
111
111
  }
112
112
 
113
113
  declare namespace SpeechSynthesisAdapter {
114
+ type Status = {
115
+ type: "starting" | "running";
116
+ } | {
117
+ type: "ended";
118
+ reason: "finished" | "cancelled" | "error";
119
+ error?: unknown;
120
+ };
114
121
  type Utterance = {
115
- stop: () => void;
122
+ status: Status;
123
+ cancel: () => void;
116
124
  onEnd: (callback: () => void) => Unsubscribe;
117
125
  };
118
126
  }
@@ -128,6 +136,10 @@ type LocalRuntimeOptions = {
128
136
  } | undefined;
129
137
  };
130
138
 
139
+ declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
140
+ speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
141
+ }
142
+
131
143
  declare class LocalThreadRuntime implements ThreadRuntime {
132
144
  private configProvider;
133
145
  adapter: ChatModelAdapter;
@@ -150,6 +162,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
150
162
  };
151
163
  constructor(configProvider: ModelConfigProvider, adapter: ChatModelAdapter, { initialMessages, ...options }: LocalRuntimeOptions);
152
164
  private _options;
165
+ get options(): LocalRuntimeOptions;
153
166
  set options({ initialMessages, ...options }: LocalRuntimeOptions);
154
167
  getBranches(messageId: string): string[];
155
168
  switchToBranch(branchId: string): void;
@@ -160,6 +173,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
160
173
  private notifySubscribers;
161
174
  subscribe(callback: () => void): Unsubscribe;
162
175
  addToolResult({ messageId, toolCallId, result, }: AddToolResultOptions): void;
176
+ private _utterance;
163
177
  speak(messageId: string): SpeechSynthesisAdapter.Utterance;
164
178
  export(): ExportedMessageRepository;
165
179
  import(data: ExportedMessageRepository): void;
@@ -392,10 +406,6 @@ type DangerousInBrowserAdapterOptions = CreateEdgeRuntimeAPIOptions;
392
406
  type DangerousInBrowserRuntimeOptions = DangerousInBrowserAdapterOptions & LocalRuntimeOptions;
393
407
  declare const useDangerousInBrowserRuntime: ({ initialMessages, ...options }: DangerousInBrowserRuntimeOptions) => LocalRuntime;
394
408
 
395
- declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
396
- speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
397
- }
398
-
399
409
  type ThreadRuntimeStore = ThreadRuntime;
400
410
 
401
411
  type ThreadState = Readonly<{
@@ -1075,11 +1085,11 @@ declare const ThreadConfigProvider: FC<ThreadConfigProviderProps>;
1075
1085
 
1076
1086
  declare const AssistantActionBar: FC;
1077
1087
  declare const exports$a: {
1078
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1088
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1079
1089
  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;
1080
1090
  } & {
1081
1091
  asChild?: boolean;
1082
- }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1092
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1083
1093
  Reload: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1084
1094
  Copy: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1085
1095
  Speak: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
@@ -1091,11 +1101,11 @@ declare const _default$9: typeof AssistantActionBar & typeof exports$a;
1091
1101
  declare const AssistantMessage: FC;
1092
1102
  type AssistantMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
1093
1103
  declare const exports$9: {
1094
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1104
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1095
1105
  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;
1096
1106
  } & {
1097
1107
  asChild?: boolean;
1098
- }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1108
+ }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1099
1109
  Avatar: FC;
1100
1110
  Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1101
1111
  };
@@ -1112,42 +1122,42 @@ declare const exports$8: {
1112
1122
  children?: react.ReactNode | undefined;
1113
1123
  }>;
1114
1124
  Trigger: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1115
- Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1125
+ Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1116
1126
  dissmissOnInteractOutside?: boolean | undefined;
1117
- } & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1127
+ } & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1118
1128
  Button: react.ForwardRefExoticComponent<Partial<AssistantModalButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1119
- Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1129
+ Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1120
1130
  };
1121
1131
  declare const _default$7: typeof AssistantModal & typeof exports$8;
1122
1132
 
1123
1133
  declare const BranchPicker: FC;
1124
1134
  declare const exports$7: {
1125
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1135
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1126
1136
  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;
1127
1137
  } & {
1128
1138
  asChild?: boolean;
1129
1139
  }, "ref"> & {
1130
1140
  hideWhenSingleBranch?: boolean | undefined;
1131
- } & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1141
+ } & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1132
1142
  Previous: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1133
1143
  Next: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1134
1144
  };
1135
1145
  declare const _default$6: typeof BranchPicker & typeof exports$7;
1136
1146
 
1137
1147
  declare const Composer: FC;
1138
- declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1148
+ declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1139
1149
  asChild?: boolean | undefined;
1140
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>>;
1150
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
1141
1151
  type ComposerInputProps = ComponentPropsWithoutRef<typeof ComposerInputStyled>;
1142
1152
  declare const exports$6: {
1143
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1153
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1144
1154
  ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
1145
1155
  } & {
1146
1156
  asChild?: boolean;
1147
- }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">, "asChild">> & react.RefAttributes<HTMLFormElement>>;
1148
- Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1157
+ }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
1158
+ Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1149
1159
  asChild?: boolean | undefined;
1150
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1160
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1151
1161
  Action: FC;
1152
1162
  Send: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1153
1163
  Cancel: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
@@ -1156,15 +1166,15 @@ declare const _default$5: typeof Composer & typeof exports$6;
1156
1166
 
1157
1167
  declare const EditComposer: FC;
1158
1168
  declare const exports$5: {
1159
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1169
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1160
1170
  ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
1161
1171
  } & {
1162
1172
  asChild?: boolean;
1163
- }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">, "asChild">> & react.RefAttributes<HTMLFormElement>>;
1164
- Input: react.ForwardRefExoticComponent<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1173
+ }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
1174
+ Input: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1165
1175
  asChild?: boolean | undefined;
1166
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>>;
1167
- Footer: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1176
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
1177
+ Footer: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1168
1178
  Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1169
1179
  Send: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1170
1180
  };
@@ -1182,11 +1192,11 @@ declare const exports$4: {
1182
1192
  } & {
1183
1193
  children?: react.ReactNode | undefined;
1184
1194
  } & react.RefAttributes<HTMLDivElement>>;
1185
- Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1195
+ Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1186
1196
  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;
1187
1197
  } & {
1188
1198
  asChild?: boolean;
1189
- }, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1199
+ }, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1190
1200
  Messages: FC<{
1191
1201
  components?: {
1192
1202
  UserMessage?: ComponentType | undefined;
@@ -1196,35 +1206,35 @@ declare const exports$4: {
1196
1206
  };
1197
1207
  }>;
1198
1208
  ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1199
- ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1209
+ ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1200
1210
  };
1201
1211
  declare const _default$3: typeof Thread & typeof exports$4;
1202
1212
 
1203
1213
  declare const UserMessage: FC;
1204
1214
  type UserMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
1205
1215
  declare const exports$3: {
1206
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1216
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1207
1217
  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;
1208
1218
  } & {
1209
1219
  asChild?: boolean;
1210
- }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1220
+ }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1211
1221
  Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1212
1222
  };
1213
1223
  declare const _default$2: typeof UserMessage & typeof exports$3;
1214
1224
 
1215
1225
  declare const UserActionBar: FC;
1216
1226
  declare const exports$2: {
1217
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1227
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1218
1228
  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;
1219
1229
  } & {
1220
1230
  asChild?: boolean;
1221
- }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1231
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1222
1232
  Edit: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1223
1233
  };
1224
1234
  declare const _default$1: typeof UserActionBar & typeof exports$2;
1225
1235
 
1226
1236
  declare const ThreadWelcome: FC;
1227
- declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "asChild">> & react.RefAttributes<HTMLParagraphElement>>;
1237
+ declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>>;
1228
1238
  type ThreadWelcomeMessageProps = Omit<ComponentPropsWithoutRef<typeof ThreadWelcomeMessageStyled>, "children"> & {
1229
1239
  message?: string | undefined;
1230
1240
  };
@@ -1233,9 +1243,9 @@ type ThreadWelcomeSuggestionProps = {
1233
1243
  };
1234
1244
  declare const exports$1: {
1235
1245
  Root: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1236
- Center: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1246
+ Center: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1237
1247
  Avatar: FC;
1238
- Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "asChild">> & react.RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
1248
+ Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
1239
1249
  message?: string | undefined;
1240
1250
  } & react.RefAttributes<HTMLParagraphElement>>;
1241
1251
  Suggestions: FC;
package/dist/index.d.ts CHANGED
@@ -111,8 +111,16 @@ declare class MessageRepository {
111
111
  }
112
112
 
113
113
  declare namespace SpeechSynthesisAdapter {
114
+ type Status = {
115
+ type: "starting" | "running";
116
+ } | {
117
+ type: "ended";
118
+ reason: "finished" | "cancelled" | "error";
119
+ error?: unknown;
120
+ };
114
121
  type Utterance = {
115
- stop: () => void;
122
+ status: Status;
123
+ cancel: () => void;
116
124
  onEnd: (callback: () => void) => Unsubscribe;
117
125
  };
118
126
  }
@@ -128,6 +136,10 @@ type LocalRuntimeOptions = {
128
136
  } | undefined;
129
137
  };
130
138
 
139
+ declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
140
+ speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
141
+ }
142
+
131
143
  declare class LocalThreadRuntime implements ThreadRuntime {
132
144
  private configProvider;
133
145
  adapter: ChatModelAdapter;
@@ -150,6 +162,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
150
162
  };
151
163
  constructor(configProvider: ModelConfigProvider, adapter: ChatModelAdapter, { initialMessages, ...options }: LocalRuntimeOptions);
152
164
  private _options;
165
+ get options(): LocalRuntimeOptions;
153
166
  set options({ initialMessages, ...options }: LocalRuntimeOptions);
154
167
  getBranches(messageId: string): string[];
155
168
  switchToBranch(branchId: string): void;
@@ -160,6 +173,7 @@ declare class LocalThreadRuntime implements ThreadRuntime {
160
173
  private notifySubscribers;
161
174
  subscribe(callback: () => void): Unsubscribe;
162
175
  addToolResult({ messageId, toolCallId, result, }: AddToolResultOptions): void;
176
+ private _utterance;
163
177
  speak(messageId: string): SpeechSynthesisAdapter.Utterance;
164
178
  export(): ExportedMessageRepository;
165
179
  import(data: ExportedMessageRepository): void;
@@ -392,10 +406,6 @@ type DangerousInBrowserAdapterOptions = CreateEdgeRuntimeAPIOptions;
392
406
  type DangerousInBrowserRuntimeOptions = DangerousInBrowserAdapterOptions & LocalRuntimeOptions;
393
407
  declare const useDangerousInBrowserRuntime: ({ initialMessages, ...options }: DangerousInBrowserRuntimeOptions) => LocalRuntime;
394
408
 
395
- declare class WebSpeechSynthesisAdapter implements SpeechSynthesisAdapter {
396
- speak(message: ThreadMessage): SpeechSynthesisAdapter.Utterance;
397
- }
398
-
399
409
  type ThreadRuntimeStore = ThreadRuntime;
400
410
 
401
411
  type ThreadState = Readonly<{
@@ -1075,11 +1085,11 @@ declare const ThreadConfigProvider: FC<ThreadConfigProviderProps>;
1075
1085
 
1076
1086
  declare const AssistantActionBar: FC;
1077
1087
  declare const exports$a: {
1078
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1088
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1079
1089
  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;
1080
1090
  } & {
1081
1091
  asChild?: boolean;
1082
- }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1092
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1083
1093
  Reload: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1084
1094
  Copy: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1085
1095
  Speak: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
@@ -1091,11 +1101,11 @@ declare const _default$9: typeof AssistantActionBar & typeof exports$a;
1091
1101
  declare const AssistantMessage: FC;
1092
1102
  type AssistantMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
1093
1103
  declare const exports$9: {
1094
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1104
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1095
1105
  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;
1096
1106
  } & {
1097
1107
  asChild?: boolean;
1098
- }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1108
+ }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1099
1109
  Avatar: FC;
1100
1110
  Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1101
1111
  };
@@ -1112,42 +1122,42 @@ declare const exports$8: {
1112
1122
  children?: react.ReactNode | undefined;
1113
1123
  }>;
1114
1124
  Trigger: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1115
- Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1125
+ Content: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1116
1126
  dissmissOnInteractOutside?: boolean | undefined;
1117
- } & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1127
+ } & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1118
1128
  Button: react.ForwardRefExoticComponent<Partial<AssistantModalButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1119
- Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1129
+ Anchor: react.ForwardRefExoticComponent<Partial<Omit<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1120
1130
  };
1121
1131
  declare const _default$7: typeof AssistantModal & typeof exports$8;
1122
1132
 
1123
1133
  declare const BranchPicker: FC;
1124
1134
  declare const exports$7: {
1125
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1135
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1126
1136
  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;
1127
1137
  } & {
1128
1138
  asChild?: boolean;
1129
1139
  }, "ref"> & {
1130
1140
  hideWhenSingleBranch?: boolean | undefined;
1131
- } & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1141
+ } & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1132
1142
  Previous: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1133
1143
  Next: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1134
1144
  };
1135
1145
  declare const _default$6: typeof BranchPicker & typeof exports$7;
1136
1146
 
1137
1147
  declare const Composer: FC;
1138
- declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1148
+ declare const ComposerInputStyled: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1139
1149
  asChild?: boolean | undefined;
1140
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>>;
1150
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
1141
1151
  type ComposerInputProps = ComponentPropsWithoutRef<typeof ComposerInputStyled>;
1142
1152
  declare const exports$6: {
1143
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1153
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1144
1154
  ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
1145
1155
  } & {
1146
1156
  asChild?: boolean;
1147
- }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">, "asChild">> & react.RefAttributes<HTMLFormElement>>;
1148
- Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1157
+ }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
1158
+ Input: react.ForwardRefExoticComponent<Omit<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1149
1159
  asChild?: boolean | undefined;
1150
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1160
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
1151
1161
  Action: FC;
1152
1162
  Send: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1153
1163
  Cancel: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
@@ -1156,15 +1166,15 @@ declare const _default$5: typeof Composer & typeof exports$6;
1156
1166
 
1157
1167
  declare const EditComposer: FC;
1158
1168
  declare const exports$5: {
1159
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1169
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & {
1160
1170
  ref?: ((instance: HTMLFormElement | 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<HTMLFormElement> | null | undefined;
1161
1171
  } & {
1162
1172
  asChild?: boolean;
1163
- }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">, "asChild">> & react.RefAttributes<HTMLFormElement>>;
1164
- Input: react.ForwardRefExoticComponent<Partial<Omit<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1173
+ }, "ref"> & react.RefAttributes<HTMLFormElement>, "ref">> & react.RefAttributes<HTMLFormElement>>;
1174
+ Input: react.ForwardRefExoticComponent<Partial<Omit<react_textarea_autosize.TextareaAutosizeProps & {
1165
1175
  asChild?: boolean | undefined;
1166
- } & react.RefAttributes<HTMLTextAreaElement>, "ref">, "asChild">> & react.RefAttributes<HTMLTextAreaElement>>;
1167
- Footer: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1176
+ } & react.RefAttributes<HTMLTextAreaElement>, "ref">> & react.RefAttributes<HTMLTextAreaElement>>;
1177
+ Footer: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1168
1178
  Cancel: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1169
1179
  Send: react.ForwardRefExoticComponent<Partial<ButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1170
1180
  };
@@ -1182,11 +1192,11 @@ declare const exports$4: {
1182
1192
  } & {
1183
1193
  children?: react.ReactNode | undefined;
1184
1194
  } & react.RefAttributes<HTMLDivElement>>;
1185
- Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1195
+ Viewport: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1186
1196
  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;
1187
1197
  } & {
1188
1198
  asChild?: boolean;
1189
- }, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1199
+ }, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1190
1200
  Messages: FC<{
1191
1201
  components?: {
1192
1202
  UserMessage?: ComponentType | undefined;
@@ -1196,35 +1206,35 @@ declare const exports$4: {
1196
1206
  };
1197
1207
  }>;
1198
1208
  ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1199
- ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1209
+ ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1200
1210
  };
1201
1211
  declare const _default$3: typeof Thread & typeof exports$4;
1202
1212
 
1203
1213
  declare const UserMessage: FC;
1204
1214
  type UserMessageContentProps = MessagePrimitiveContentProps & ComponentPropsWithoutRef<"div">;
1205
1215
  declare const exports$3: {
1206
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1216
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1207
1217
  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;
1208
1218
  } & {
1209
1219
  asChild?: boolean;
1210
- }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1220
+ }, "ref"> & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1211
1221
  Content: react.ForwardRefExoticComponent<MessagePrimitiveContentProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1212
1222
  };
1213
1223
  declare const _default$2: typeof UserMessage & typeof exports$3;
1214
1224
 
1215
1225
  declare const UserActionBar: FC;
1216
1226
  declare const exports$2: {
1217
- Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1227
+ Root: react.ForwardRefExoticComponent<Partial<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
1218
1228
  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;
1219
1229
  } & {
1220
1230
  asChild?: boolean;
1221
- }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1231
+ }, "ref"> & UseActionBarFloatStatusProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1222
1232
  Edit: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
1223
1233
  };
1224
1234
  declare const _default$1: typeof UserActionBar & typeof exports$2;
1225
1235
 
1226
1236
  declare const ThreadWelcome: FC;
1227
- declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "asChild">> & react.RefAttributes<HTMLParagraphElement>>;
1237
+ declare const ThreadWelcomeMessageStyled: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>>;
1228
1238
  type ThreadWelcomeMessageProps = Omit<ComponentPropsWithoutRef<typeof ThreadWelcomeMessageStyled>, "children"> & {
1229
1239
  message?: string | undefined;
1230
1240
  };
@@ -1233,9 +1243,9 @@ type ThreadWelcomeSuggestionProps = {
1233
1243
  };
1234
1244
  declare const exports$1: {
1235
1245
  Root: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1236
- Center: react.ForwardRefExoticComponent<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "asChild">> & react.RefAttributes<HTMLDivElement>>;
1246
+ Center: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
1237
1247
  Avatar: FC;
1238
- Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "asChild">> & react.RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
1248
+ Message: react.ForwardRefExoticComponent<Omit<Omit<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">> & react.RefAttributes<HTMLParagraphElement>, "ref">, "children"> & {
1239
1249
  message?: string | undefined;
1240
1250
  } & react.RefAttributes<HTMLParagraphElement>>;
1241
1251
  Suggestions: FC;