@copilotkit/angular 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4710 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { Type, Signal, InjectionToken, Provider, Injector, DestroyRef, WritableSignal, OnDestroy, NgZone, ElementRef, TemplateRef, ViewContainerRef, ComponentRef, EmbeddedViewRef, OnInit, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit } from '@angular/core';
3
+ import * as _ag_ui_client from '@ag-ui/client';
4
+ import { AbstractAgent, ActivityMessage, ToolCall, Context, AssistantMessage, Message as Message$1 } from '@ag-ui/client';
5
+ export { AssistantMessage, Message } from '@ag-ui/client';
6
+ import { FrontendTool, FrontendToolHandlerContext, SuggestionsConfig, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport, CopilotKitCoreGetSuggestionsResult, CopilotKitCore, Suggestion } from '@copilotkit/core';
7
+ export { DynamicSuggestionsConfig, StaticSuggestionsConfig, Suggestion, SuggestionsConfig } from '@copilotkit/core';
8
+ import { StandardSchemaV1, Attachment, TranscriptionErrorCode, AttachmentsConfig, AttachmentModality, InputContent, ImageInputPart, AudioInputPart, VideoInputPart, DocumentInputPart } from '@copilotkit/shared';
9
+ export { Attachment, AttachmentModality, AttachmentUploadError, AttachmentUploadResult, AttachmentsConfig, TranscriptionErrorCode } from '@copilotkit/shared';
10
+ import { z } from 'zod';
11
+ import { Theme, Catalog, LitComponentImplementation, LitRenderable } from '@copilotkit/a2ui-renderer/web-components';
12
+ import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
+ import { Observable } from 'rxjs';
14
+ import { ClassValue } from 'clsx';
15
+ import * as _copilotkit_angular from '@copilotkit/angular';
16
+ import * as lucide_angular from 'lucide-angular';
17
+ import { UserMessage, Message, ReasoningMessage, ActivityMessage as ActivityMessage$1 } from '@ag-ui/core';
18
+ import Websandbox from '@jetbrains/websandbox';
19
+
20
+ type AngularToolCall<Args extends Record<string, unknown> = Record<string, unknown>> = {
21
+ name?: string;
22
+ args: Partial<Args>;
23
+ status: "in-progress";
24
+ result: undefined;
25
+ } | {
26
+ name?: string;
27
+ args: Args;
28
+ status: "executing";
29
+ result: undefined;
30
+ } | {
31
+ name?: string;
32
+ args: Args;
33
+ status: "complete";
34
+ result: string;
35
+ };
36
+ type HumanInTheLoopToolCall<Args extends Record<string, unknown> = Record<string, unknown>> = {
37
+ name?: string;
38
+ args: Partial<Args>;
39
+ status: "in-progress";
40
+ result: undefined;
41
+ respond: (result: unknown) => void;
42
+ } | {
43
+ name?: string;
44
+ args: Args;
45
+ status: "executing";
46
+ result: undefined;
47
+ respond: (result: unknown) => void;
48
+ } | {
49
+ name?: string;
50
+ args: Args;
51
+ status: "complete";
52
+ result: string;
53
+ respond: (result: unknown) => void;
54
+ };
55
+ interface ToolRenderer<Args extends Record<string, unknown> = Record<string, unknown>> {
56
+ toolCall: Signal<AngularToolCall<Args>>;
57
+ agent?: Signal<AbstractAgent | undefined>;
58
+ }
59
+ interface HumanInTheLoopToolRenderer<Args extends Record<string, unknown> = Record<string, unknown>> {
60
+ toolCall: Signal<HumanInTheLoopToolCall<Args>>;
61
+ }
62
+ type ClientTool<Args extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool<Args>, "handler"> & {
63
+ renderer?: Type<ToolRenderer<Args>>;
64
+ };
65
+ interface RenderToolCallConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
66
+ name: string;
67
+ args: StandardSchemaV1<unknown, Args>;
68
+ component: Type<ToolRenderer<Args>>;
69
+ agentId?: string;
70
+ passAgent?: boolean;
71
+ }
72
+ interface FrontendToolConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
73
+ name: string;
74
+ description: string;
75
+ parameters: StandardSchemaV1<unknown, Args>;
76
+ component?: Type<ToolRenderer<Args>>;
77
+ handler: (args: Args, context: FrontendToolHandlerContext) => Promise<unknown>;
78
+ followUp?: boolean;
79
+ agentId?: string;
80
+ }
81
+ interface HumanInTheLoopConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
82
+ name: string;
83
+ description: string;
84
+ parameters: StandardSchemaV1<unknown, Args>;
85
+ component: Type<HumanInTheLoopToolRenderer<Args>>;
86
+ agentId?: string;
87
+ }
88
+ declare function registerRenderToolCall<Args extends Record<string, unknown> = Record<string, unknown>>(renderToolCall: RenderToolCallConfig<Args>): void;
89
+ declare function registerFrontendTool<Args extends Record<string, unknown> = Record<string, unknown>>(frontendTool: FrontendToolConfig<Args>): void;
90
+ declare function registerHumanInTheLoop<Args extends Record<string, unknown> = Record<string, unknown>>(humanInTheLoop: HumanInTheLoopConfig<Args>): void;
91
+
92
+ type AngularActivityContentParseResult<T> = {
93
+ success: true;
94
+ data: T;
95
+ } | {
96
+ success: false;
97
+ error?: unknown;
98
+ };
99
+ interface AngularActivityContentSchema<T> {
100
+ safeParse(content: unknown): AngularActivityContentParseResult<T>;
101
+ }
102
+ interface ActivityRenderer<TActivityContent = unknown> {
103
+ activityType: Signal<string>;
104
+ content: Signal<TActivityContent>;
105
+ message: Signal<ActivityMessage>;
106
+ agent: Signal<AbstractAgent | undefined>;
107
+ }
108
+ interface RenderActivityMessageConfig<TActivityContent = unknown> {
109
+ activityType: string;
110
+ agentId?: string;
111
+ content: AngularActivityContentSchema<TActivityContent>;
112
+ component: Type<ActivityRenderer<TActivityContent>>;
113
+ }
114
+ declare const anyActivityContentSchema: AngularActivityContentSchema<unknown>;
115
+
116
+ declare const OPEN_GENERATIVE_UI_ACTIVITY_TYPE = "open-generative-ui";
117
+ declare const GENERATE_SANDBOXED_UI_TOOL_NAME = "generateSandboxedUi";
118
+ declare const DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL = "When generating UI with generateSandboxedUi, follow these design principles inspired by shadcn/ui:\n\n- Use a minimal, flat aesthetic. Avoid drop shadows and gradients \u2014 rely on subtle borders (1px solid, light gray like #e5e7eb) to define surfaces.\n- Neutral base palette: white backgrounds, zinc/slate gray text (#09090b for headings, #71717a for secondary text). One accent color for interactive elements.\n- Use system font stacks (system-ui, -apple-system, sans-serif) at readable sizes (14px body, 600 weight for headings). Tight line-heights.\n- Small, consistent border-radius (6\u20138px). Cards and containers use border, not shadow, for separation.\n- Buttons: solid fill for primary (dark bg, white text), outline for secondary (border + transparent bg). Subtle hover state (slight opacity or background shift).\n- Use CSS Grid or Flexbox for layout. Ensure the UI looks good at any width.\n- Minimal transitions (150ms) for hover/focus states only. No decorative animations.\n- Keep the UI focused and dense \u2014 avoid excessive padding. Use compact spacing (8\u201312px gaps, 10\u201314px padding in controls).";
119
+ declare const GENERATE_SANDBOXED_UI_DESCRIPTION: string;
120
+ declare const OpenGenerativeUIContentSchema: z.ZodObject<{
121
+ initialHeight: z.ZodOptional<z.ZodNumber>;
122
+ generating: z.ZodOptional<z.ZodBoolean>;
123
+ css: z.ZodOptional<z.ZodString>;
124
+ cssComplete: z.ZodOptional<z.ZodBoolean>;
125
+ html: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ htmlComplete: z.ZodOptional<z.ZodBoolean>;
127
+ jsFunctions: z.ZodOptional<z.ZodString>;
128
+ jsFunctionsComplete: z.ZodOptional<z.ZodBoolean>;
129
+ jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ jsExpressionsComplete: z.ZodOptional<z.ZodBoolean>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ html?: string[];
133
+ initialHeight?: number;
134
+ generating?: boolean;
135
+ css?: string;
136
+ cssComplete?: boolean;
137
+ htmlComplete?: boolean;
138
+ jsFunctions?: string;
139
+ jsFunctionsComplete?: boolean;
140
+ jsExpressions?: string[];
141
+ jsExpressionsComplete?: boolean;
142
+ }, {
143
+ html?: string[];
144
+ initialHeight?: number;
145
+ generating?: boolean;
146
+ css?: string;
147
+ cssComplete?: boolean;
148
+ htmlComplete?: boolean;
149
+ jsFunctions?: string;
150
+ jsFunctionsComplete?: boolean;
151
+ jsExpressions?: string[];
152
+ jsExpressionsComplete?: boolean;
153
+ }>;
154
+ type OpenGenerativeUIContent = z.infer<typeof OpenGenerativeUIContentSchema>;
155
+ declare const GenerateSandboxedUiArgsSchema: z.ZodObject<{
156
+ initialHeight: z.ZodOptional<z.ZodNumber>;
157
+ placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ css: z.ZodOptional<z.ZodString>;
159
+ html: z.ZodOptional<z.ZodString>;
160
+ jsFunctions: z.ZodOptional<z.ZodString>;
161
+ jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ html?: string;
164
+ initialHeight?: number;
165
+ css?: string;
166
+ jsFunctions?: string;
167
+ jsExpressions?: string[];
168
+ placeholderMessages?: string[];
169
+ }, {
170
+ html?: string;
171
+ initialHeight?: number;
172
+ css?: string;
173
+ jsFunctions?: string;
174
+ jsExpressions?: string[];
175
+ placeholderMessages?: string[];
176
+ }>;
177
+ type GenerateSandboxedUiArgs = z.infer<typeof GenerateSandboxedUiArgsSchema>;
178
+ type SandboxFunction<Args extends Record<string, unknown> = Record<string, unknown>> = {
179
+ name: string;
180
+ description: string;
181
+ parameters: StandardSchemaV1<unknown, Args>;
182
+ handler: (args: Args, context?: FrontendToolHandlerContext) => Promise<unknown> | unknown;
183
+ };
184
+ interface OpenGenerativeUIConfig {
185
+ sandboxFunctions?: SandboxFunction[];
186
+ designSkill?: string;
187
+ }
188
+
189
+ interface A2UIConfig {
190
+ theme?: Theme;
191
+ catalog?: Catalog<LitComponentImplementation>;
192
+ loadingComponent?: () => LitRenderable;
193
+ includeSchema?: boolean;
194
+ }
195
+ interface CopilotKitConfig {
196
+ runtimeUrl?: string;
197
+ headers?: Record<string, string>;
198
+ licenseKey?: string;
199
+ properties?: Record<string, unknown>;
200
+ agents?: Record<string, AbstractAgent>;
201
+ selfManagedAgents?: Record<string, AbstractAgent>;
202
+ tools?: ClientTool[];
203
+ renderToolCalls?: RenderToolCallConfig[];
204
+ renderActivityMessages?: RenderActivityMessageConfig[];
205
+ suggestionsConfig?: SuggestionsConfig[];
206
+ frontendTools?: FrontendToolConfig[];
207
+ humanInTheLoop?: HumanInTheLoopConfig[];
208
+ a2ui?: A2UIConfig;
209
+ openGenerativeUI?: OpenGenerativeUIConfig;
210
+ }
211
+ declare const COPILOT_KIT_CONFIG: InjectionToken<CopilotKitConfig>;
212
+ declare function injectCopilotKitConfig(): CopilotKitConfig;
213
+ declare function provideCopilotKit(config: CopilotKitConfig): Provider;
214
+
215
+ declare class CopilotKit {
216
+ #private;
217
+ readonly agents: Signal<Record<string, AbstractAgent>>;
218
+ readonly runtimeConnectionStatus: Signal<CopilotKitCoreRuntimeConnectionStatus>;
219
+ readonly runtimeUrl: Signal<string>;
220
+ readonly runtimeTransport: Signal<CopilotRuntimeTransport>;
221
+ readonly headers: Signal<Record<string, string>>;
222
+ readonly suggestionsByAgent: Signal<Record<string, CopilotKitCoreGetSuggestionsResult>>;
223
+ readonly core: CopilotKitCore;
224
+ readonly toolCallRenderConfigs: Signal<RenderToolCallConfig[]>;
225
+ readonly clientToolCallRenderConfigs: Signal<FrontendToolConfig[]>;
226
+ readonly humanInTheLoopToolRenderConfigs: Signal<HumanInTheLoopConfig[]>;
227
+ readonly activityMessageRenderConfigs: Signal<RenderActivityMessageConfig[]>;
228
+ constructor();
229
+ addFrontendTool(clientToolWithInjector: FrontendToolConfig & {
230
+ injector: Injector;
231
+ }): void;
232
+ addRenderToolCall(renderConfig: RenderToolCallConfig): void;
233
+ addRenderActivityMessage(renderConfig: RenderActivityMessageConfig): void;
234
+ addHumanInTheLoop(humanInTheLoopTool: HumanInTheLoopConfig): void;
235
+ addSuggestionsConfig(config: SuggestionsConfig): string;
236
+ removeSuggestionsConfig(id: string): void;
237
+ reloadSuggestions(agentId: string): void;
238
+ clearSuggestions(agentId: string): void;
239
+ getSuggestions(agentId: string): CopilotKitCoreGetSuggestionsResult;
240
+ removeTool(toolName: string, agentId?: string): void;
241
+ getAgent(agentId: string): AbstractAgent | undefined;
242
+ updateRuntime(options: {
243
+ runtimeUrl?: string;
244
+ runtimeTransport?: CopilotRuntimeTransport;
245
+ headers?: Record<string, string>;
246
+ properties?: Record<string, unknown>;
247
+ agents?: Record<string, AbstractAgent>;
248
+ selfManagedAgents?: Record<string, AbstractAgent>;
249
+ }): void;
250
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotKit, never>;
251
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CopilotKit>;
252
+ }
253
+
254
+ type RendererToolCallHandler = {
255
+ type: "renderer";
256
+ config: RenderToolCallConfig;
257
+ };
258
+ type ClientToolCallHandler = {
259
+ type: "clientTool";
260
+ config: FrontendToolConfig;
261
+ };
262
+ type HumanInTheLoopToolCallHandler = {
263
+ type: "humanInTheLoopTool";
264
+ config: HumanInTheLoopConfig;
265
+ };
266
+ type ToolCallHandler = RendererToolCallHandler | ClientToolCallHandler | HumanInTheLoopToolCallHandler;
267
+ declare class RenderToolCalls {
268
+ #private;
269
+ readonly message: _angular_core.InputSignal<{
270
+ role: "assistant";
271
+ id: string;
272
+ name?: string | undefined;
273
+ content?: string | undefined;
274
+ encryptedValue?: string | undefined;
275
+ toolCalls?: {
276
+ function: {
277
+ name: string;
278
+ arguments: string;
279
+ };
280
+ type: "function";
281
+ id: string;
282
+ encryptedValue?: string | undefined;
283
+ }[] | undefined;
284
+ }>;
285
+ readonly messages: _angular_core.InputSignal<({
286
+ role: "developer";
287
+ content: string;
288
+ id: string;
289
+ name?: string | undefined;
290
+ encryptedValue?: string | undefined;
291
+ } | {
292
+ role: "system";
293
+ content: string;
294
+ id: string;
295
+ name?: string | undefined;
296
+ encryptedValue?: string | undefined;
297
+ } | {
298
+ role: "assistant";
299
+ id: string;
300
+ name?: string | undefined;
301
+ content?: string | undefined;
302
+ encryptedValue?: string | undefined;
303
+ toolCalls?: {
304
+ function: {
305
+ name: string;
306
+ arguments: string;
307
+ };
308
+ type: "function";
309
+ id: string;
310
+ encryptedValue?: string | undefined;
311
+ }[] | undefined;
312
+ } | {
313
+ role: "user";
314
+ content: string | ({
315
+ type: "text";
316
+ text: string;
317
+ } | {
318
+ type: "image";
319
+ source: {
320
+ type: "data";
321
+ value: string;
322
+ mimeType: string;
323
+ } | {
324
+ type: "url";
325
+ value: string;
326
+ mimeType?: string | undefined;
327
+ };
328
+ metadata?: unknown;
329
+ } | {
330
+ type: "audio";
331
+ source: {
332
+ type: "data";
333
+ value: string;
334
+ mimeType: string;
335
+ } | {
336
+ type: "url";
337
+ value: string;
338
+ mimeType?: string | undefined;
339
+ };
340
+ metadata?: unknown;
341
+ } | {
342
+ type: "video";
343
+ source: {
344
+ type: "data";
345
+ value: string;
346
+ mimeType: string;
347
+ } | {
348
+ type: "url";
349
+ value: string;
350
+ mimeType?: string | undefined;
351
+ };
352
+ metadata?: unknown;
353
+ } | {
354
+ type: "document";
355
+ source: {
356
+ type: "data";
357
+ value: string;
358
+ mimeType: string;
359
+ } | {
360
+ type: "url";
361
+ value: string;
362
+ mimeType?: string | undefined;
363
+ };
364
+ metadata?: unknown;
365
+ } | {
366
+ type: "binary";
367
+ mimeType: string;
368
+ id?: string | undefined;
369
+ data?: string | undefined;
370
+ url?: string | undefined;
371
+ filename?: string | undefined;
372
+ })[];
373
+ id: string;
374
+ name?: string | undefined;
375
+ encryptedValue?: string | undefined;
376
+ } | {
377
+ role: "tool";
378
+ toolCallId: string;
379
+ content: string;
380
+ id: string;
381
+ encryptedValue?: string | undefined;
382
+ error?: string | undefined;
383
+ } | {
384
+ role: "activity";
385
+ content: Record<string, any>;
386
+ id: string;
387
+ activityType: string;
388
+ } | {
389
+ role: "reasoning";
390
+ content: string;
391
+ id: string;
392
+ encryptedValue?: string | undefined;
393
+ })[]>;
394
+ readonly isLoading: _angular_core.InputSignal<boolean>;
395
+ readonly agentId: _angular_core.InputSignal<string>;
396
+ protected pickRenderer(name: string): ToolCallHandler | undefined;
397
+ protected buildToolCall<Args extends Record<string, unknown>>(toolCall: ToolCall): AngularToolCall<Args>;
398
+ protected buildRendererInputs<Args extends Record<string, unknown>>(toolCall: ToolCall, handler: RendererToolCallHandler | ClientToolCallHandler): {
399
+ toolCall: AngularToolCall<Args>;
400
+ agent?: AbstractAgent;
401
+ };
402
+ protected buildHumanInTheLoopToolCall<Args extends Record<string, unknown>>(toolCall: ToolCall): HumanInTheLoopToolCall<Args>;
403
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RenderToolCalls, never>;
404
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RenderToolCalls, "copilot-render-tool-calls", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": true; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
405
+ }
406
+
407
+ /** Function signature for subscribing to an agent — derived from
408
+ * CopilotKitCore so the types stay in sync automatically. Injected
409
+ * by the factory so that AgentStore stays decoupled from the concrete class. */
410
+ type SubscribeToAgentFn = CopilotKitCore["subscribeToAgentWithOptions"];
411
+ declare class AgentStore {
412
+ #private;
413
+ readonly agent: AbstractAgent;
414
+ readonly isRunning: Signal<boolean>;
415
+ readonly messages: Signal<({
416
+ role: "developer";
417
+ content: string;
418
+ id: string;
419
+ name?: string | undefined;
420
+ encryptedValue?: string | undefined;
421
+ } | {
422
+ role: "system";
423
+ content: string;
424
+ id: string;
425
+ name?: string | undefined;
426
+ encryptedValue?: string | undefined;
427
+ } | {
428
+ role: "assistant";
429
+ id: string;
430
+ name?: string | undefined;
431
+ content?: string | undefined;
432
+ encryptedValue?: string | undefined;
433
+ toolCalls?: {
434
+ function: {
435
+ name: string;
436
+ arguments: string;
437
+ };
438
+ type: "function";
439
+ id: string;
440
+ encryptedValue?: string | undefined;
441
+ }[] | undefined;
442
+ } | {
443
+ role: "user";
444
+ content: string | ({
445
+ type: "text";
446
+ text: string;
447
+ } | {
448
+ type: "image";
449
+ source: {
450
+ type: "data";
451
+ value: string;
452
+ mimeType: string;
453
+ } | {
454
+ type: "url";
455
+ value: string;
456
+ mimeType?: string | undefined;
457
+ };
458
+ metadata?: unknown;
459
+ } | {
460
+ type: "audio";
461
+ source: {
462
+ type: "data";
463
+ value: string;
464
+ mimeType: string;
465
+ } | {
466
+ type: "url";
467
+ value: string;
468
+ mimeType?: string | undefined;
469
+ };
470
+ metadata?: unknown;
471
+ } | {
472
+ type: "video";
473
+ source: {
474
+ type: "data";
475
+ value: string;
476
+ mimeType: string;
477
+ } | {
478
+ type: "url";
479
+ value: string;
480
+ mimeType?: string | undefined;
481
+ };
482
+ metadata?: unknown;
483
+ } | {
484
+ type: "document";
485
+ source: {
486
+ type: "data";
487
+ value: string;
488
+ mimeType: string;
489
+ } | {
490
+ type: "url";
491
+ value: string;
492
+ mimeType?: string | undefined;
493
+ };
494
+ metadata?: unknown;
495
+ } | {
496
+ type: "binary";
497
+ mimeType: string;
498
+ id?: string | undefined;
499
+ data?: string | undefined;
500
+ url?: string | undefined;
501
+ filename?: string | undefined;
502
+ })[];
503
+ id: string;
504
+ name?: string | undefined;
505
+ encryptedValue?: string | undefined;
506
+ } | {
507
+ role: "tool";
508
+ toolCallId: string;
509
+ content: string;
510
+ id: string;
511
+ encryptedValue?: string | undefined;
512
+ error?: string | undefined;
513
+ } | {
514
+ role: "activity";
515
+ content: Record<string, any>;
516
+ id: string;
517
+ activityType: string;
518
+ } | {
519
+ role: "reasoning";
520
+ content: string;
521
+ id: string;
522
+ encryptedValue?: string | undefined;
523
+ })[]>;
524
+ readonly state: Signal<unknown>;
525
+ constructor(abstractAgent: AbstractAgent, destroyRef: DestroyRef, subscribeToAgent: SubscribeToAgentFn);
526
+ teardown(): void;
527
+ }
528
+ declare class CopilotkitAgentFactory {
529
+ #private;
530
+ createAgentStoreSignal(agentId: Signal<string | undefined>, destroyRef: DestroyRef): Signal<AgentStore>;
531
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotkitAgentFactory, never>;
532
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CopilotkitAgentFactory>;
533
+ }
534
+ declare function injectAgentStore(agentId: string | Signal<string | undefined>): Signal<AgentStore>;
535
+
536
+ interface CopilotChatLabels {
537
+ chatInputPlaceholder: string;
538
+ chatInputToolbarStartTranscribeButtonLabel: string;
539
+ chatInputToolbarCancelTranscribeButtonLabel: string;
540
+ chatInputToolbarFinishTranscribeButtonLabel: string;
541
+ chatInputToolbarAddButtonLabel: string;
542
+ chatInputToolbarToolsButtonLabel: string;
543
+ assistantMessageToolbarCopyCodeLabel: string;
544
+ assistantMessageToolbarCopyCodeCopiedLabel: string;
545
+ assistantMessageToolbarCopyMessageLabel: string;
546
+ assistantMessageToolbarThumbsUpLabel: string;
547
+ assistantMessageToolbarThumbsDownLabel: string;
548
+ assistantMessageToolbarReadAloudLabel: string;
549
+ assistantMessageToolbarRegenerateLabel: string;
550
+ userMessageToolbarCopyMessageLabel: string;
551
+ userMessageToolbarEditMessageLabel: string;
552
+ chatDisclaimerText: string;
553
+ welcomeMessageText: string;
554
+ }
555
+ declare const COPILOT_CHAT_DEFAULT_LABELS: CopilotChatLabels;
556
+ declare const COPILOT_CHAT_LABELS: InjectionToken<CopilotChatLabels>;
557
+ declare function injectChatLabels(): CopilotChatLabels;
558
+ declare function provideCopilotChatLabels(config: Partial<CopilotChatLabels>): Provider;
559
+
560
+ declare abstract class ChatState {
561
+ abstract readonly inputValue: WritableSignal<string>;
562
+ readonly attachments: WritableSignal<Attachment[]>;
563
+ readonly attachmentsEnabled: Signal<boolean>;
564
+ readonly attachmentsUploading: Signal<boolean>;
565
+ readonly dragOver: WritableSignal<boolean>;
566
+ readonly suggestions: WritableSignal<Suggestion[]>;
567
+ readonly suggestionsLoading: WritableSignal<boolean>;
568
+ readonly isTranscribing: WritableSignal<boolean>;
569
+ abstract submitInput(value: string): void;
570
+ abstract changeInput(value: string): void;
571
+ selectSuggestion(_suggestion: Suggestion, _index: number): void;
572
+ finishTranscription(_audioBlob: Blob): void | Promise<void>;
573
+ addFile(): void;
574
+ removeAttachment(_id: string): void;
575
+ handleDragOver(_event: DragEvent): void;
576
+ handleDragLeave(_event: DragEvent): void;
577
+ handleDrop(_event: DragEvent): void;
578
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatState, never>;
579
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChatState>;
580
+ }
581
+ declare function injectChatState(): ChatState;
582
+
583
+ interface TranscriptionResult {
584
+ text: string;
585
+ size: number;
586
+ type: string;
587
+ }
588
+ interface TranscriptionErrorInfo {
589
+ code: TranscriptionErrorCode;
590
+ message: string;
591
+ retryable: boolean;
592
+ }
593
+ declare class TranscriptionError extends Error {
594
+ readonly info: TranscriptionErrorInfo;
595
+ constructor(info: TranscriptionErrorInfo);
596
+ }
597
+ /**
598
+ * Transcribe an audio blob via the CopilotKit runtime. Uses single-endpoint
599
+ * (base64 JSON) or REST (multipart `/transcribe`) mode to match the transport
600
+ * configured on the core.
601
+ *
602
+ * @throws {TranscriptionError} with typed error info on any failure.
603
+ */
604
+ declare function transcribeAudio(core: CopilotKitCore, audioBlob: Blob, filename?: string): Promise<TranscriptionResult>;
605
+
606
+ interface ScrollState {
607
+ isAtBottom: boolean;
608
+ scrollTop: number;
609
+ scrollHeight: number;
610
+ clientHeight: number;
611
+ }
612
+ declare class ScrollPosition implements OnDestroy {
613
+ private scrollDispatcher;
614
+ private viewportRuler;
615
+ private ngZone;
616
+ private destroy$;
617
+ private scrollStateSubject;
618
+ scrollState$: Observable<ScrollState>;
619
+ constructor(scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, ngZone: NgZone);
620
+ /**
621
+ * Monitor scroll position of an element
622
+ * @param element The element to monitor
623
+ * @param threshold Pixels from bottom to consider "at bottom" (default 10)
624
+ */
625
+ monitorScrollPosition(element: ElementRef<HTMLElement> | HTMLElement, threshold?: number): Observable<ScrollState>;
626
+ /**
627
+ * Scroll element to bottom with smooth animation
628
+ * @param element The element to scroll
629
+ * @param smooth Whether to use smooth scrolling
630
+ */
631
+ scrollToBottom(element: ElementRef<HTMLElement> | HTMLElement, smooth?: boolean): void;
632
+ /**
633
+ * Check if element is at bottom
634
+ * @param element The element to check
635
+ * @param threshold Pixels from bottom to consider "at bottom"
636
+ */
637
+ isAtBottom(element: ElementRef<HTMLElement> | HTMLElement, threshold?: number): boolean;
638
+ /**
639
+ * Get current scroll state of element
640
+ */
641
+ getScrollState(element: HTMLElement, threshold: number): ScrollState;
642
+ /**
643
+ * Create a ResizeObserver for element size changes
644
+ * @param element The element to observe
645
+ * @param debounceMs Debounce time in milliseconds
646
+ */
647
+ observeResize(element: ElementRef<HTMLElement> | HTMLElement, debounceMs?: number): Observable<ResizeObserverEntry>;
648
+ ngOnDestroy(): void;
649
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollPosition, never>;
650
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ScrollPosition>;
651
+ }
652
+
653
+ interface ResizeState {
654
+ width: number;
655
+ height: number;
656
+ isResizing: boolean;
657
+ }
658
+ declare class ResizeObserverService implements OnDestroy {
659
+ private ngZone;
660
+ private destroy$;
661
+ private observers;
662
+ private resizeStates;
663
+ private resizeTimeouts;
664
+ constructor(ngZone: NgZone);
665
+ /**
666
+ * Observe element resize with debouncing and resizing state
667
+ * @param element Element to observe
668
+ * @param debounceMs Debounce time (default 250ms)
669
+ * @param resizingDurationMs How long to show "isResizing" state (default 250ms)
670
+ */
671
+ observeElement(element: ElementRef<HTMLElement> | HTMLElement, debounceMs?: number, resizingDurationMs?: number): Observable<ResizeState>;
672
+ /**
673
+ * Stop observing an element
674
+ * @param element Element to stop observing
675
+ */
676
+ unobserve(element: ElementRef<HTMLElement> | HTMLElement): void;
677
+ /**
678
+ * Get current size of element
679
+ * @param element Element to measure
680
+ */
681
+ getCurrentSize(element: ElementRef<HTMLElement> | HTMLElement): {
682
+ width: number;
683
+ height: number;
684
+ };
685
+ /**
686
+ * Get current resize state of element
687
+ * @param element Element to check
688
+ */
689
+ getCurrentState(element: ElementRef<HTMLElement> | HTMLElement): ResizeState | null;
690
+ ngOnDestroy(): void;
691
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeObserverService, never>;
692
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ResizeObserverService>;
693
+ }
694
+
695
+ /**
696
+ * Utility function to merge Tailwind CSS classes
697
+ * Combines clsx for conditional classes and tailwind-merge for proper Tailwind class merging
698
+ */
699
+ declare function cn(...inputs: ClassValue[]): string;
700
+
701
+ interface ConnectAgentContextConfig {
702
+ injector?: Injector;
703
+ }
704
+ /**
705
+ * Connects context to the agent.
706
+ *
707
+ * @param context - The context (or a signal of context) to connect to the agent.
708
+ * @param config - Optional configuration for connecting the context.
709
+ */
710
+ declare function connectAgentContext(context: Context | Signal<Context>, config?: ConnectAgentContextConfig): void;
711
+
712
+ /**
713
+ * Represents a value that can be used as a slot override.
714
+ * Can be a component type or template reference only.
715
+ * @internal - This type is for internal use only
716
+ */
717
+ type SlotValue<T = any> = Type<T> | TemplateRef<T>;
718
+ /**
719
+ * Configuration for a slot
720
+ * @internal - This interface is for internal use only
721
+ */
722
+ interface SlotConfig<T = any> {
723
+ value?: SlotValue<T>;
724
+ default?: Type<T>;
725
+ }
726
+ /**
727
+ * Context passed to slot templates
728
+ */
729
+ interface SlotContext<T = any> {
730
+ $implicit: T;
731
+ props?: Partial<T>;
732
+ [key: string]: any;
733
+ }
734
+ /**
735
+ * Slot registry entry
736
+ * @internal - This interface is for internal use only
737
+ */
738
+ interface SlotRegistryEntry<T = any> {
739
+ component?: Type<T>;
740
+ template?: TemplateRef<T>;
741
+ }
742
+ /**
743
+ * Options for rendering a slot
744
+ */
745
+ interface RenderSlotOptions<T = any> {
746
+ slot?: SlotValue<T>;
747
+ defaultComponent: Type<T>;
748
+ props?: Partial<T>;
749
+ injector?: any;
750
+ outputs?: Record<string, (event: any) => void>;
751
+ }
752
+ /**
753
+ * Injection token for slot configuration
754
+ */
755
+ declare const SLOT_CONFIG: InjectionToken<ReadonlyMap<string, SlotRegistryEntry<any>>>;
756
+ /**
757
+ * Type for components with slots
758
+ */
759
+ type WithSlots<S extends Record<string, Type<any>>, Rest = object> = {
760
+ [K in keyof S as `${string & K}Component`]?: Type<any>;
761
+ } & {
762
+ [K in keyof S as `${string & K}Template`]?: TemplateRef<any>;
763
+ } & {
764
+ [K in keyof S as `${string & K}Class`]?: string;
765
+ } & Rest;
766
+
767
+ /**
768
+ * Renders a slot value into a ViewContainerRef.
769
+ * This is the core utility for slot rendering.
770
+ *
771
+ * @param viewContainer - The ViewContainerRef to render into
772
+ * @param options - Options for rendering the slot
773
+ * @returns The created component or embedded view reference
774
+ *
775
+ * @example
776
+ * ```typescript
777
+ * export class MyComponent {
778
+ * @ViewChild('container', { read: ViewContainerRef }) container!: ViewContainerRef;
779
+ *
780
+ * renderButton() {
781
+ * renderSlot(this.container, {
782
+ * slot: this.buttonOverride,
783
+ * defaultComponent: DefaultButton,
784
+ * props: { text: 'Click me' },
785
+ * outputs: { click: (event) => this.handleClick(event) }
786
+ * });
787
+ * }
788
+ * }
789
+ * ```
790
+ */
791
+ declare function renderSlot<T = any>(viewContainer: ViewContainerRef, options: RenderSlotOptions<T>): ComponentRef<T> | EmbeddedViewRef<T> | null;
792
+ /**
793
+ * Checks if a value is a component type.
794
+ * Simplified check - rely on try/catch for actual validation.
795
+ */
796
+ declare function isComponentType(value: any): boolean;
797
+ /**
798
+ * Checks if a value is a valid slot value.
799
+ */
800
+ declare function isSlotValue(value: any): value is SlotValue;
801
+ /**
802
+ * Normalizes a slot value to a consistent format.
803
+ */
804
+ declare function normalizeSlotValue<T = any>(value: SlotValue<T> | undefined, defaultComponent: Type<T> | undefined): SlotRegistryEntry<T>;
805
+ /**
806
+ * Creates a slot configuration map for a component.
807
+ *
808
+ * @example
809
+ * ```typescript
810
+ * const slots = createSlotConfig({
811
+ standalone: true,
812
+ * sendButton: CustomSendButton,
813
+ * toolbar: 'custom-toolbar-class',
814
+ * footer: footerTemplate
815
+ * }, {
816
+ * sendButton: DefaultSendButton,
817
+ * toolbar: DefaultToolbar,
818
+ * footer: DefaultFooter
819
+ * });
820
+ * ```
821
+ */
822
+ declare function createSlotConfig<T extends Record<string, Type<any>>>(overrides: Partial<Record<keyof T, SlotValue>>, defaults: T): Map<keyof T, SlotRegistryEntry>;
823
+ /**
824
+ * Provides slot configuration to child components via DI.
825
+ *
826
+ * @example
827
+ * ```typescript
828
+ * @Component({
829
+ standalone: true,
830
+ * providers: [
831
+ * provideSlots({
832
+ * sendButton: CustomSendButton,
833
+ * toolbar: CustomToolbar
834
+ * })
835
+ * ]
836
+ * })
837
+ * ```
838
+ */
839
+ declare function provideSlots(slots: Record<string, Type<any>>): {
840
+ provide: _angular_core.InjectionToken<ReadonlyMap<string, SlotRegistryEntry<any>>>;
841
+ useValue: Map<string, SlotRegistryEntry<any>>;
842
+ };
843
+ /**
844
+ * Gets slot configuration from DI.
845
+ * Must be called within an injection context.
846
+ *
847
+ * @example
848
+ * ```typescript
849
+ * export class MyComponent {
850
+ * slots = getSlotConfig();
851
+ *
852
+ * ngOnInit() {
853
+ * const sendButton = this.slots?.get('sendButton');
854
+ * }
855
+ * }
856
+ * ```
857
+ */
858
+ declare function getSlotConfig(): ReadonlyMap<string, SlotRegistryEntry> | null;
859
+ /**
860
+ * Creates a render function for a specific slot.
861
+ * Useful for creating reusable slot renderers.
862
+ *
863
+ * @example
864
+ * ```typescript
865
+ * const renderSendButton = createSlotRenderer(
866
+ * DefaultSendButton,
867
+ * 'sendButton'
868
+ * );
869
+ *
870
+ * // Later in template
871
+ * renderSendButton(this.viewContainer, this.sendButtonOverride);
872
+ * ```
873
+ */
874
+ declare function createSlotRenderer<T>(defaultComponent: Type<T>, slotName?: string): (viewContainer: ViewContainerRef, slot?: SlotValue<T>, props?: Partial<T>, outputs?: Record<string, (event: any) => void>) => ComponentRef<T> | EmbeddedViewRef<T>;
875
+
876
+ /**
877
+ * @internal - This component is for internal use only.
878
+ * Simple slot component for rendering custom content or defaults.
879
+ * Supports templates and components only.
880
+ *
881
+ * @example
882
+ * ```html
883
+ * <!-- With template -->
884
+ * <copilot-slot [slot]="sendButtonTemplate" [context]="buttonContext">
885
+ * <button class="default-btn">Default</button>
886
+ * </copilot-slot>
887
+ * ```
888
+ */
889
+ declare class CopilotSlot implements OnInit, OnChanges {
890
+ private viewContainer;
891
+ private cdr;
892
+ slot: _angular_core.InputSignal<Type<any> | TemplateRef<any>>;
893
+ context: _angular_core.InputSignal<any>;
894
+ defaultComponent: _angular_core.InputSignal<Type<any>>;
895
+ outputs: _angular_core.InputSignal<Record<string, (event: any) => void>>;
896
+ private slotContainer;
897
+ private componentRef?;
898
+ constructor(viewContainer: ViewContainerRef, cdr: ChangeDetectorRef);
899
+ ngOnInit(): void;
900
+ ngOnChanges(changes: SimpleChanges): void;
901
+ isTemplate(value: any): value is TemplateRef<any>;
902
+ private renderSlot;
903
+ private updateComponentProps;
904
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotSlot, never>;
905
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotSlot, "copilot-slot", never, { "slot": { "alias": "slot"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "defaultComponent": { "alias": "defaultComponent"; "required": false; "isSignal": true; }; "outputs": { "alias": "outputs"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
906
+ }
907
+
908
+ /**
909
+ * Directive to manage agent context in CopilotKit.
910
+ * Automatically adds context on init, updates on changes, and removes on destroy.
911
+ *
912
+ * @example
913
+ * ```html
914
+ * <!-- With separate inputs -->
915
+ * <div copilotkitAgentContext
916
+ * [description]="'User preferences'"
917
+ * [value]="userSettings">
918
+ * </div>
919
+ *
920
+ * <!-- With context object -->
921
+ * <div [copilotkitAgentContext]="contextObject">
922
+ * </div>
923
+ *
924
+ * <!-- With dynamic values -->
925
+ * <div copilotkitAgentContext
926
+ * description="Form state"
927
+ * [value]="formData$ | async">
928
+ * </div>
929
+ * ```
930
+ */
931
+ declare class CopilotKitAgentContext implements OnInit, OnChanges, OnDestroy {
932
+ private readonly copilotkit;
933
+ private contextId?;
934
+ constructor(copilotkit: CopilotKit);
935
+ /**
936
+ * Context object containing both description and value.
937
+ * If provided, this takes precedence over individual inputs.
938
+ */
939
+ context?: Context;
940
+ /**
941
+ * Description of the context.
942
+ * Used when context object is not provided.
943
+ */
944
+ description?: string;
945
+ /**
946
+ * Value of the context.
947
+ * Used when context object is not provided.
948
+ */
949
+ value?: any;
950
+ ngOnInit(): void;
951
+ ngOnChanges(changes: SimpleChanges): void;
952
+ ngOnDestroy(): void;
953
+ /**
954
+ * Adds the context to CopilotKit
955
+ */
956
+ private addContext;
957
+ /**
958
+ * Updates the context by removing the old one and adding a new one
959
+ */
960
+ private updateContext;
961
+ /**
962
+ * Removes the current context from CopilotKit
963
+ */
964
+ private removeContext;
965
+ /**
966
+ * Gets the context object from inputs
967
+ */
968
+ private getContext;
969
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotKitAgentContext, never>;
970
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CopilotKitAgentContext, "[copilotkitAgentContext]", never, { "context": { "alias": "copilotkitAgentContext"; "required": false; }; "description": { "alias": "description"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
971
+ }
972
+
973
+ type ScrollBehavior = "smooth" | "instant" | "auto";
974
+ /**
975
+ * Directive for implementing stick-to-bottom scroll behavior
976
+ * Similar to the React use-stick-to-bottom library
977
+ *
978
+ * @example
979
+ * ```html
980
+ * <div copilotStickToBottom
981
+ * [enabled]="true"
982
+ * [threshold]="10"
983
+ * [initialBehavior]="'smooth'"
984
+ * [resizeBehavior]="'smooth'"
985
+ * (isAtBottomChange)="onBottomChange($event)">
986
+ * <!-- Content -->
987
+ * </div>
988
+ * ```
989
+ */
990
+ declare class StickToBottom implements OnInit, AfterViewInit, OnDestroy {
991
+ enabled: _angular_core.InputSignal<boolean>;
992
+ threshold: _angular_core.InputSignal<number>;
993
+ initialBehavior: _angular_core.InputSignal<ScrollBehavior>;
994
+ resizeBehavior: _angular_core.InputSignal<ScrollBehavior>;
995
+ debounceMs: _angular_core.InputSignal<number>;
996
+ isAtBottomChange: _angular_core.OutputEmitterRef<boolean>;
997
+ scrollToBottomRequested: _angular_core.OutputEmitterRef<void>;
998
+ private elementRef;
999
+ private scrollService;
1000
+ private resizeService;
1001
+ private destroy$;
1002
+ private contentElement?;
1003
+ private wasAtBottom;
1004
+ private hasInitialized;
1005
+ private userHasScrolled;
1006
+ ngOnInit(): void;
1007
+ ngAfterViewInit(): void;
1008
+ private setupScrollMonitoring;
1009
+ private setupResizeMonitoring;
1010
+ private setupContentMutationObserver;
1011
+ /**
1012
+ * Public method to scroll to bottom
1013
+ * Can be called from parent component
1014
+ */
1015
+ scrollToBottom(behavior?: ScrollBehavior): void;
1016
+ /**
1017
+ * Check if currently at bottom
1018
+ */
1019
+ isAtBottom(): boolean;
1020
+ /**
1021
+ * Get current scroll state
1022
+ */
1023
+ getScrollState(): {
1024
+ scrollTop: any;
1025
+ scrollHeight: any;
1026
+ clientHeight: any;
1027
+ isAtBottom: boolean;
1028
+ };
1029
+ ngOnDestroy(): void;
1030
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StickToBottom, never>;
1031
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StickToBottom, "[copilotStickToBottom]", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "initialBehavior": { "alias": "initialBehavior"; "required": false; "isSignal": true; }; "resizeBehavior": { "alias": "resizeBehavior"; "required": false; "isSignal": true; }; "debounceMs": { "alias": "debounceMs"; "required": false; "isSignal": true; }; }, { "isAtBottomChange": "isAtBottomChange"; "scrollToBottomRequested": "scrollToBottomRequested"; }, never, never, true, never>;
1032
+ }
1033
+
1034
+ declare class TooltipContent {
1035
+ private cdr;
1036
+ text: string;
1037
+ private _position;
1038
+ get position(): "above" | "below" | "left" | "right";
1039
+ set position(value: "above" | "below" | "left" | "right");
1040
+ constructor(cdr: ChangeDetectorRef);
1041
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipContent, never>;
1042
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TooltipContent, "copilot-tooltip-content", never, {}, {}, never, never, true, never>;
1043
+ }
1044
+ declare class CopilotTooltip implements OnDestroy {
1045
+ tooltipText: string;
1046
+ tooltipPosition: "above" | "below" | "left" | "right";
1047
+ tooltipDelay: number;
1048
+ private overlay;
1049
+ private overlayPositionBuilder;
1050
+ private elementRef;
1051
+ private viewContainerRef;
1052
+ private overlayRef?;
1053
+ private tooltipTimeout?;
1054
+ private originalTitle?;
1055
+ onMouseEnter(): void;
1056
+ onMouseLeave(): void;
1057
+ private show;
1058
+ private hide;
1059
+ private getPositions;
1060
+ ngOnDestroy(): void;
1061
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotTooltip, never>;
1062
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CopilotTooltip, "[copilotTooltip]", never, { "tooltipText": { "alias": "copilotTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; }; }, {}, never, never, true, never>;
1063
+ }
1064
+
1065
+ /**
1066
+ * CopilotChat component - Angular equivalent of React's <CopilotChat>
1067
+ * Provides a complete chat interface that wires an agent to the chat view
1068
+ *
1069
+ * @example
1070
+ * ```html
1071
+ * <copilot-chat [agentId]="'default'" [threadId]="'abc123'"></copilot-chat>
1072
+ * ```
1073
+ */
1074
+ declare class CopilotChat extends ChatState {
1075
+ private readonly attachmentsDirective;
1076
+ readonly inputValue: _angular_core.WritableSignal<string>;
1077
+ readonly agentId: _angular_core.InputSignal<string>;
1078
+ readonly threadId: _angular_core.InputSignal<string>;
1079
+ readonly inputComponent: _angular_core.InputSignal<Type<any>>;
1080
+ readonly attachmentsConfig: _angular_core.InputSignal<AttachmentsConfig>;
1081
+ protected readonly resolvedAgentId: _angular_core.Signal<string>;
1082
+ readonly agentStore: _angular_core.Signal<_copilotkit_angular.AgentStore>;
1083
+ private readonly copilotKit;
1084
+ readonly cdr: ChangeDetectorRef;
1085
+ readonly injector: Injector;
1086
+ private readonly destroyRef;
1087
+ protected messages: _angular_core.Signal<({
1088
+ role: "developer";
1089
+ content: string;
1090
+ id: string;
1091
+ name?: string | undefined;
1092
+ encryptedValue?: string | undefined;
1093
+ } | {
1094
+ role: "system";
1095
+ content: string;
1096
+ id: string;
1097
+ name?: string | undefined;
1098
+ encryptedValue?: string | undefined;
1099
+ } | {
1100
+ role: "assistant";
1101
+ id: string;
1102
+ name?: string | undefined;
1103
+ content?: string | undefined;
1104
+ encryptedValue?: string | undefined;
1105
+ toolCalls?: {
1106
+ function: {
1107
+ name: string;
1108
+ arguments: string;
1109
+ };
1110
+ type: "function";
1111
+ id: string;
1112
+ encryptedValue?: string | undefined;
1113
+ }[] | undefined;
1114
+ } | {
1115
+ role: "user";
1116
+ content: string | ({
1117
+ type: "text";
1118
+ text: string;
1119
+ } | {
1120
+ type: "image";
1121
+ source: {
1122
+ type: "data";
1123
+ value: string;
1124
+ mimeType: string;
1125
+ } | {
1126
+ type: "url";
1127
+ value: string;
1128
+ mimeType?: string | undefined;
1129
+ };
1130
+ metadata?: unknown;
1131
+ } | {
1132
+ type: "audio";
1133
+ source: {
1134
+ type: "data";
1135
+ value: string;
1136
+ mimeType: string;
1137
+ } | {
1138
+ type: "url";
1139
+ value: string;
1140
+ mimeType?: string | undefined;
1141
+ };
1142
+ metadata?: unknown;
1143
+ } | {
1144
+ type: "video";
1145
+ source: {
1146
+ type: "data";
1147
+ value: string;
1148
+ mimeType: string;
1149
+ } | {
1150
+ type: "url";
1151
+ value: string;
1152
+ mimeType?: string | undefined;
1153
+ };
1154
+ metadata?: unknown;
1155
+ } | {
1156
+ type: "document";
1157
+ source: {
1158
+ type: "data";
1159
+ value: string;
1160
+ mimeType: string;
1161
+ } | {
1162
+ type: "url";
1163
+ value: string;
1164
+ mimeType?: string | undefined;
1165
+ };
1166
+ metadata?: unknown;
1167
+ } | {
1168
+ type: "binary";
1169
+ mimeType: string;
1170
+ id?: string | undefined;
1171
+ data?: string | undefined;
1172
+ url?: string | undefined;
1173
+ filename?: string | undefined;
1174
+ })[];
1175
+ id: string;
1176
+ name?: string | undefined;
1177
+ encryptedValue?: string | undefined;
1178
+ } | {
1179
+ role: "tool";
1180
+ toolCallId: string;
1181
+ content: string;
1182
+ id: string;
1183
+ encryptedValue?: string | undefined;
1184
+ error?: string | undefined;
1185
+ } | {
1186
+ role: "activity";
1187
+ content: Record<string, any>;
1188
+ id: string;
1189
+ activityType: string;
1190
+ } | {
1191
+ role: "reasoning";
1192
+ content: string;
1193
+ id: string;
1194
+ encryptedValue?: string | undefined;
1195
+ })[]>;
1196
+ protected isRunning: _angular_core.Signal<boolean>;
1197
+ protected hasExplicitThreadId: _angular_core.Signal<boolean>;
1198
+ protected readonly agentRef: _angular_core.Signal<AbstractAgent>;
1199
+ protected readonly resolvedThreadId: _angular_core.Signal<string>;
1200
+ readonly attachmentsEnabled: _angular_core.Signal<boolean>;
1201
+ readonly attachmentsUploading: _angular_core.Signal<boolean>;
1202
+ protected showCursor: _angular_core.WritableSignal<boolean>;
1203
+ private generatedThreadId;
1204
+ constructor();
1205
+ private connectToAgent;
1206
+ submitInput(value: string): Promise<void>;
1207
+ selectSuggestion(suggestion: Suggestion, _index: number): Promise<void>;
1208
+ changeInput(value: string): void;
1209
+ finishTranscription(audioBlob: Blob): Promise<void>;
1210
+ private syncSuggestionsFromCore;
1211
+ addFile(): void;
1212
+ removeAttachment(id: string): void;
1213
+ handleDragOver(event: DragEvent): void;
1214
+ handleDragLeave(event: DragEvent): void;
1215
+ handleDrop(event: DragEvent): void;
1216
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChat, never>;
1217
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChat, "copilot-chat", never, { "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "threadId": { "alias": "threadId"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "attachmentsConfig": { "alias": "attachments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1218
+ }
1219
+
1220
+ declare class CopilotChatToolCallsView {
1221
+ readonly message: _angular_core.InputSignal<{
1222
+ role: "assistant";
1223
+ id: string;
1224
+ name?: string | undefined;
1225
+ content?: string | undefined;
1226
+ encryptedValue?: string | undefined;
1227
+ toolCalls?: {
1228
+ function: {
1229
+ name: string;
1230
+ arguments: string;
1231
+ };
1232
+ type: "function";
1233
+ id: string;
1234
+ encryptedValue?: string | undefined;
1235
+ }[] | undefined;
1236
+ }>;
1237
+ readonly messages: _angular_core.InputSignal<({
1238
+ role: "developer";
1239
+ content: string;
1240
+ id: string;
1241
+ name?: string | undefined;
1242
+ encryptedValue?: string | undefined;
1243
+ } | {
1244
+ role: "system";
1245
+ content: string;
1246
+ id: string;
1247
+ name?: string | undefined;
1248
+ encryptedValue?: string | undefined;
1249
+ } | {
1250
+ role: "assistant";
1251
+ id: string;
1252
+ name?: string | undefined;
1253
+ content?: string | undefined;
1254
+ encryptedValue?: string | undefined;
1255
+ toolCalls?: {
1256
+ function: {
1257
+ name: string;
1258
+ arguments: string;
1259
+ };
1260
+ type: "function";
1261
+ id: string;
1262
+ encryptedValue?: string | undefined;
1263
+ }[] | undefined;
1264
+ } | {
1265
+ role: "user";
1266
+ content: string | ({
1267
+ type: "text";
1268
+ text: string;
1269
+ } | {
1270
+ type: "image";
1271
+ source: {
1272
+ type: "data";
1273
+ value: string;
1274
+ mimeType: string;
1275
+ } | {
1276
+ type: "url";
1277
+ value: string;
1278
+ mimeType?: string | undefined;
1279
+ };
1280
+ metadata?: unknown;
1281
+ } | {
1282
+ type: "audio";
1283
+ source: {
1284
+ type: "data";
1285
+ value: string;
1286
+ mimeType: string;
1287
+ } | {
1288
+ type: "url";
1289
+ value: string;
1290
+ mimeType?: string | undefined;
1291
+ };
1292
+ metadata?: unknown;
1293
+ } | {
1294
+ type: "video";
1295
+ source: {
1296
+ type: "data";
1297
+ value: string;
1298
+ mimeType: string;
1299
+ } | {
1300
+ type: "url";
1301
+ value: string;
1302
+ mimeType?: string | undefined;
1303
+ };
1304
+ metadata?: unknown;
1305
+ } | {
1306
+ type: "document";
1307
+ source: {
1308
+ type: "data";
1309
+ value: string;
1310
+ mimeType: string;
1311
+ } | {
1312
+ type: "url";
1313
+ value: string;
1314
+ mimeType?: string | undefined;
1315
+ };
1316
+ metadata?: unknown;
1317
+ } | {
1318
+ type: "binary";
1319
+ mimeType: string;
1320
+ id?: string | undefined;
1321
+ data?: string | undefined;
1322
+ url?: string | undefined;
1323
+ filename?: string | undefined;
1324
+ })[];
1325
+ id: string;
1326
+ name?: string | undefined;
1327
+ encryptedValue?: string | undefined;
1328
+ } | {
1329
+ role: "tool";
1330
+ toolCallId: string;
1331
+ content: string;
1332
+ id: string;
1333
+ encryptedValue?: string | undefined;
1334
+ error?: string | undefined;
1335
+ } | {
1336
+ role: "activity";
1337
+ content: Record<string, any>;
1338
+ id: string;
1339
+ activityType: string;
1340
+ } | {
1341
+ role: "reasoning";
1342
+ content: string;
1343
+ id: string;
1344
+ encryptedValue?: string | undefined;
1345
+ })[]>;
1346
+ readonly agentId: _angular_core.InputSignal<string>;
1347
+ readonly isLoading: _angular_core.InputSignal<boolean>;
1348
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolCallsView, never>;
1349
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolCallsView, "copilot-chat-tool-calls-view", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": true; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1350
+ }
1351
+
1352
+ interface AssistantMessageMarkdownRendererContext {
1353
+ content: string;
1354
+ }
1355
+ interface AssistantMessageToolbarContext {
1356
+ children?: any;
1357
+ }
1358
+ interface AssistantMessageCopyButtonContext {
1359
+ content?: string;
1360
+ }
1361
+ interface ThumbsUpButtonContext {
1362
+ }
1363
+ interface ThumbsDownButtonContext {
1364
+ }
1365
+ interface ReadAloudButtonContext {
1366
+ }
1367
+ interface RegenerateButtonContext {
1368
+ }
1369
+ interface CopilotChatAssistantMessageOnThumbsUpProps {
1370
+ message: AssistantMessage;
1371
+ }
1372
+ interface CopilotChatAssistantMessageOnThumbsDownProps {
1373
+ message: AssistantMessage;
1374
+ }
1375
+ interface CopilotChatAssistantMessageOnReadAloudProps {
1376
+ message: AssistantMessage;
1377
+ }
1378
+ interface CopilotChatAssistantMessageOnRegenerateProps {
1379
+ message: AssistantMessage;
1380
+ }
1381
+
1382
+ declare class CopilotChatAssistantMessageRenderer implements AfterViewInit {
1383
+ readonly content: _angular_core.InputSignal<string>;
1384
+ readonly inputClass: _angular_core.InputSignal<string>;
1385
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1386
+ markdownContainer?: ElementRef<HTMLDivElement>;
1387
+ private elementRef;
1388
+ private copyStates;
1389
+ readonly renderedHtml: _angular_core.Signal<string>;
1390
+ constructor();
1391
+ ngAfterViewInit(): void;
1392
+ private updateContent;
1393
+ private codeBlocksMap;
1394
+ private markedInstance;
1395
+ private initializeMarked;
1396
+ private renderMarkdown;
1397
+ private processMathEquations;
1398
+ private renderMathEquations;
1399
+ handleClick(event: MouseEvent): void;
1400
+ private copyCodeBlock;
1401
+ private generateBlockId;
1402
+ private escapeHtml;
1403
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRenderer, never>;
1404
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageRenderer, "copilot-chat-assistant-message-renderer", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1405
+ }
1406
+
1407
+ declare class CopilotChatAssistantMessageToolbarButton {
1408
+ title: _angular_core.InputSignal<string>;
1409
+ disabled: _angular_core.InputSignal<boolean>;
1410
+ inputClass: _angular_core.InputSignal<string>;
1411
+ computedClass: _angular_core.Signal<string>;
1412
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageToolbarButton, never>;
1413
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageToolbarButton, "button[copilotChatAssistantMessageToolbarButton]", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof CopilotTooltip; inputs: { "copilotTooltip": "title"; "tooltipPosition": "tooltipPosition"; "tooltipDelay": "tooltipDelay"; }; outputs: {}; }]>;
1414
+ }
1415
+ declare class CopilotChatAssistantMessageCopyButton {
1416
+ readonly title: _angular_core.InputSignal<string>;
1417
+ readonly disabled: _angular_core.InputSignal<boolean>;
1418
+ readonly inputClass: _angular_core.InputSignal<string>;
1419
+ readonly content: _angular_core.InputSignal<string>;
1420
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
1421
+ readonly CopyIcon: lucide_angular.LucideIconData;
1422
+ readonly CheckIcon: lucide_angular.LucideIconData;
1423
+ readonly copied: _angular_core.WritableSignal<boolean>;
1424
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1425
+ handleCopy(event?: Event): void;
1426
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageCopyButton, never>;
1427
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageCopyButton, "copilot-chat-assistant-message-copy-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1428
+ }
1429
+ declare class CopilotChatAssistantMessageThumbsUpButton {
1430
+ readonly title: _angular_core.InputSignal<string>;
1431
+ readonly disabled: _angular_core.InputSignal<boolean>;
1432
+ readonly inputClass: _angular_core.InputSignal<string>;
1433
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
1434
+ readonly ThumbsUpIcon: lucide_angular.LucideIconData;
1435
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1436
+ handleClick(event?: Event): void;
1437
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsUpButton, never>;
1438
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageThumbsUpButton, "copilot-chat-assistant-message-thumbs-up-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1439
+ }
1440
+ declare class CopilotChatAssistantMessageThumbsDownButton {
1441
+ readonly title: _angular_core.InputSignal<string>;
1442
+ readonly disabled: _angular_core.InputSignal<boolean>;
1443
+ readonly inputClass: _angular_core.InputSignal<string>;
1444
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
1445
+ readonly ThumbsDownIcon: lucide_angular.LucideIconData;
1446
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1447
+ handleClick(event?: Event): void;
1448
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageThumbsDownButton, never>;
1449
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageThumbsDownButton, "copilot-chat-assistant-message-thumbs-down-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1450
+ }
1451
+ declare class CopilotChatAssistantMessageReadAloudButton {
1452
+ readonly title: _angular_core.InputSignal<string>;
1453
+ readonly disabled: _angular_core.InputSignal<boolean>;
1454
+ readonly inputClass: _angular_core.InputSignal<string>;
1455
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
1456
+ readonly Volume2Icon: lucide_angular.LucideIconData;
1457
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1458
+ handleClick(event?: Event): void;
1459
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageReadAloudButton, never>;
1460
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageReadAloudButton, "copilot-chat-assistant-message-read-aloud-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1461
+ }
1462
+ declare class CopilotChatAssistantMessageRegenerateButton {
1463
+ readonly title: _angular_core.InputSignal<string>;
1464
+ readonly disabled: _angular_core.InputSignal<boolean>;
1465
+ readonly inputClass: _angular_core.InputSignal<string>;
1466
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
1467
+ readonly RefreshCwIcon: lucide_angular.LucideIconData;
1468
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
1469
+ handleClick(event?: Event): void;
1470
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageRegenerateButton, never>;
1471
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessageRegenerateButton, "copilot-chat-assistant-message-regenerate-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
1472
+ }
1473
+
1474
+ declare class CopilotChatAssistantMessageToolbar {
1475
+ readonly inputClass: _angular_core.InputSignal<string>;
1476
+ readonly computedClass: _angular_core.Signal<string>;
1477
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessageToolbar, never>;
1478
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CopilotChatAssistantMessageToolbar, "[copilotChatAssistantMessageToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1479
+ }
1480
+
1481
+ declare class CopilotChatViewHandlers {
1482
+ hasAssistantThumbsUpHandler: _angular_core.WritableSignal<boolean>;
1483
+ hasAssistantThumbsDownHandler: _angular_core.WritableSignal<boolean>;
1484
+ hasAssistantReadAloudHandler: _angular_core.WritableSignal<boolean>;
1485
+ hasAssistantRegenerateHandler: _angular_core.WritableSignal<boolean>;
1486
+ hasUserCopyHandler: _angular_core.WritableSignal<boolean>;
1487
+ hasUserEditHandler: _angular_core.WritableSignal<boolean>;
1488
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewHandlers, never>;
1489
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CopilotChatViewHandlers>;
1490
+ }
1491
+
1492
+ declare class CopilotChatAssistantMessage {
1493
+ markdownRendererTemplate?: TemplateRef<AssistantMessageMarkdownRendererContext>;
1494
+ toolbarTemplate?: TemplateRef<AssistantMessageToolbarContext>;
1495
+ copyButtonTemplate?: TemplateRef<AssistantMessageCopyButtonContext>;
1496
+ thumbsUpButtonTemplate?: TemplateRef<ThumbsUpButtonContext>;
1497
+ thumbsDownButtonTemplate?: TemplateRef<ThumbsDownButtonContext>;
1498
+ readAloudButtonTemplate?: TemplateRef<ReadAloudButtonContext>;
1499
+ regenerateButtonTemplate?: TemplateRef<RegenerateButtonContext>;
1500
+ toolCallsViewTemplate?: TemplateRef<any>;
1501
+ readonly markdownRendererClass: _angular_core.InputSignal<string>;
1502
+ readonly toolbarClass: _angular_core.InputSignal<string>;
1503
+ readonly copyButtonClass: _angular_core.InputSignal<string>;
1504
+ readonly thumbsUpButtonClass: _angular_core.InputSignal<string>;
1505
+ readonly thumbsDownButtonClass: _angular_core.InputSignal<string>;
1506
+ readonly readAloudButtonClass: _angular_core.InputSignal<string>;
1507
+ readonly regenerateButtonClass: _angular_core.InputSignal<string>;
1508
+ readonly toolCallsViewClass: _angular_core.InputSignal<string>;
1509
+ readonly markdownRendererComponent: _angular_core.InputSignal<Type<any>>;
1510
+ readonly toolbarComponent: _angular_core.InputSignal<Type<any>>;
1511
+ readonly copyButtonComponent: _angular_core.InputSignal<Type<any>>;
1512
+ readonly thumbsUpButtonComponent: _angular_core.InputSignal<Type<any>>;
1513
+ readonly thumbsDownButtonComponent: _angular_core.InputSignal<Type<any>>;
1514
+ readonly readAloudButtonComponent: _angular_core.InputSignal<Type<any>>;
1515
+ readonly regenerateButtonComponent: _angular_core.InputSignal<Type<any>>;
1516
+ readonly toolCallsViewComponent: _angular_core.InputSignal<Type<any>>;
1517
+ readonly message: _angular_core.InputSignal<{
1518
+ role: "assistant";
1519
+ id: string;
1520
+ name?: string | undefined;
1521
+ content?: string | undefined;
1522
+ encryptedValue?: string | undefined;
1523
+ toolCalls?: {
1524
+ function: {
1525
+ name: string;
1526
+ arguments: string;
1527
+ };
1528
+ type: "function";
1529
+ id: string;
1530
+ encryptedValue?: string | undefined;
1531
+ }[] | undefined;
1532
+ }>;
1533
+ readonly messages: _angular_core.InputSignal<({
1534
+ role: "developer";
1535
+ content: string;
1536
+ id: string;
1537
+ name?: string | undefined;
1538
+ encryptedValue?: string | undefined;
1539
+ } | {
1540
+ role: "system";
1541
+ content: string;
1542
+ id: string;
1543
+ name?: string | undefined;
1544
+ encryptedValue?: string | undefined;
1545
+ } | {
1546
+ role: "assistant";
1547
+ id: string;
1548
+ name?: string | undefined;
1549
+ content?: string | undefined;
1550
+ encryptedValue?: string | undefined;
1551
+ toolCalls?: {
1552
+ function: {
1553
+ name: string;
1554
+ arguments: string;
1555
+ };
1556
+ type: "function";
1557
+ id: string;
1558
+ encryptedValue?: string | undefined;
1559
+ }[] | undefined;
1560
+ } | {
1561
+ role: "user";
1562
+ content: string | ({
1563
+ type: "text";
1564
+ text: string;
1565
+ } | {
1566
+ type: "image";
1567
+ source: {
1568
+ type: "data";
1569
+ value: string;
1570
+ mimeType: string;
1571
+ } | {
1572
+ type: "url";
1573
+ value: string;
1574
+ mimeType?: string | undefined;
1575
+ };
1576
+ metadata?: unknown;
1577
+ } | {
1578
+ type: "audio";
1579
+ source: {
1580
+ type: "data";
1581
+ value: string;
1582
+ mimeType: string;
1583
+ } | {
1584
+ type: "url";
1585
+ value: string;
1586
+ mimeType?: string | undefined;
1587
+ };
1588
+ metadata?: unknown;
1589
+ } | {
1590
+ type: "video";
1591
+ source: {
1592
+ type: "data";
1593
+ value: string;
1594
+ mimeType: string;
1595
+ } | {
1596
+ type: "url";
1597
+ value: string;
1598
+ mimeType?: string | undefined;
1599
+ };
1600
+ metadata?: unknown;
1601
+ } | {
1602
+ type: "document";
1603
+ source: {
1604
+ type: "data";
1605
+ value: string;
1606
+ mimeType: string;
1607
+ } | {
1608
+ type: "url";
1609
+ value: string;
1610
+ mimeType?: string | undefined;
1611
+ };
1612
+ metadata?: unknown;
1613
+ } | {
1614
+ type: "binary";
1615
+ mimeType: string;
1616
+ id?: string | undefined;
1617
+ data?: string | undefined;
1618
+ url?: string | undefined;
1619
+ filename?: string | undefined;
1620
+ })[];
1621
+ id: string;
1622
+ name?: string | undefined;
1623
+ encryptedValue?: string | undefined;
1624
+ } | {
1625
+ role: "tool";
1626
+ toolCallId: string;
1627
+ content: string;
1628
+ id: string;
1629
+ encryptedValue?: string | undefined;
1630
+ error?: string | undefined;
1631
+ } | {
1632
+ role: "activity";
1633
+ content: Record<string, any>;
1634
+ id: string;
1635
+ activityType: string;
1636
+ } | {
1637
+ role: "reasoning";
1638
+ content: string;
1639
+ id: string;
1640
+ encryptedValue?: string | undefined;
1641
+ })[]>;
1642
+ readonly agentId: _angular_core.InputSignal<string>;
1643
+ readonly isLoading: _angular_core.InputSignal<boolean>;
1644
+ readonly additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any>>;
1645
+ readonly toolbarVisible: _angular_core.InputSignal<boolean>;
1646
+ readonly inputClass: _angular_core.InputSignal<string>;
1647
+ handlers: CopilotChatViewHandlers;
1648
+ constructor(handlers?: CopilotChatViewHandlers | null);
1649
+ thumbsUp: _angular_core.OutputEmitterRef<CopilotChatAssistantMessageOnThumbsUpProps>;
1650
+ thumbsDown: _angular_core.OutputEmitterRef<CopilotChatAssistantMessageOnThumbsDownProps>;
1651
+ readAloud: _angular_core.OutputEmitterRef<CopilotChatAssistantMessageOnReadAloudProps>;
1652
+ regenerate: _angular_core.OutputEmitterRef<CopilotChatAssistantMessageOnRegenerateProps>;
1653
+ customClass: _angular_core.WritableSignal<string>;
1654
+ computedClass: _angular_core.Signal<string>;
1655
+ protected readonly defaultThumbsUpButtonComponent: typeof CopilotChatAssistantMessageThumbsUpButton;
1656
+ protected readonly defaultThumbsDownButtonComponent: typeof CopilotChatAssistantMessageThumbsDownButton;
1657
+ protected readonly CopilotChatAssistantMessageRenderer: typeof CopilotChatAssistantMessageRenderer;
1658
+ protected readonly CopilotChatAssistantMessageToolbar: typeof CopilotChatAssistantMessageToolbar;
1659
+ protected readonly CopilotChatAssistantMessageCopyButton: typeof CopilotChatAssistantMessageCopyButton;
1660
+ protected readonly CopilotChatToolCallsView: typeof CopilotChatToolCallsView;
1661
+ markdownRendererContext: _angular_core.Signal<AssistantMessageMarkdownRendererContext>;
1662
+ copyButtonOutputs: {
1663
+ clicked: () => void;
1664
+ };
1665
+ thumbsUpButtonOutputs: {
1666
+ clicked: () => void;
1667
+ };
1668
+ thumbsDownButtonOutputs: {
1669
+ clicked: () => void;
1670
+ };
1671
+ readAloudButtonOutputs: {
1672
+ clicked: () => void;
1673
+ };
1674
+ regenerateButtonOutputs: {
1675
+ clicked: () => void;
1676
+ };
1677
+ toolbarContext: _angular_core.Signal<AssistantMessageToolbarContext>;
1678
+ hasMessageContent(): boolean;
1679
+ toolCallsViewContext: _angular_core.Signal<{
1680
+ message: {
1681
+ role: "assistant";
1682
+ id: string;
1683
+ name?: string | undefined;
1684
+ content?: string | undefined;
1685
+ encryptedValue?: string | undefined;
1686
+ toolCalls?: {
1687
+ function: {
1688
+ name: string;
1689
+ arguments: string;
1690
+ };
1691
+ type: "function";
1692
+ id: string;
1693
+ encryptedValue?: string | undefined;
1694
+ }[] | undefined;
1695
+ };
1696
+ messages: ({
1697
+ role: "developer";
1698
+ content: string;
1699
+ id: string;
1700
+ name?: string | undefined;
1701
+ encryptedValue?: string | undefined;
1702
+ } | {
1703
+ role: "system";
1704
+ content: string;
1705
+ id: string;
1706
+ name?: string | undefined;
1707
+ encryptedValue?: string | undefined;
1708
+ } | {
1709
+ role: "assistant";
1710
+ id: string;
1711
+ name?: string | undefined;
1712
+ content?: string | undefined;
1713
+ encryptedValue?: string | undefined;
1714
+ toolCalls?: {
1715
+ function: {
1716
+ name: string;
1717
+ arguments: string;
1718
+ };
1719
+ type: "function";
1720
+ id: string;
1721
+ encryptedValue?: string | undefined;
1722
+ }[] | undefined;
1723
+ } | {
1724
+ role: "user";
1725
+ content: string | ({
1726
+ type: "text";
1727
+ text: string;
1728
+ } | {
1729
+ type: "image";
1730
+ source: {
1731
+ type: "data";
1732
+ value: string;
1733
+ mimeType: string;
1734
+ } | {
1735
+ type: "url";
1736
+ value: string;
1737
+ mimeType?: string | undefined;
1738
+ };
1739
+ metadata?: unknown;
1740
+ } | {
1741
+ type: "audio";
1742
+ source: {
1743
+ type: "data";
1744
+ value: string;
1745
+ mimeType: string;
1746
+ } | {
1747
+ type: "url";
1748
+ value: string;
1749
+ mimeType?: string | undefined;
1750
+ };
1751
+ metadata?: unknown;
1752
+ } | {
1753
+ type: "video";
1754
+ source: {
1755
+ type: "data";
1756
+ value: string;
1757
+ mimeType: string;
1758
+ } | {
1759
+ type: "url";
1760
+ value: string;
1761
+ mimeType?: string | undefined;
1762
+ };
1763
+ metadata?: unknown;
1764
+ } | {
1765
+ type: "document";
1766
+ source: {
1767
+ type: "data";
1768
+ value: string;
1769
+ mimeType: string;
1770
+ } | {
1771
+ type: "url";
1772
+ value: string;
1773
+ mimeType?: string | undefined;
1774
+ };
1775
+ metadata?: unknown;
1776
+ } | {
1777
+ type: "binary";
1778
+ mimeType: string;
1779
+ id?: string | undefined;
1780
+ data?: string | undefined;
1781
+ url?: string | undefined;
1782
+ filename?: string | undefined;
1783
+ })[];
1784
+ id: string;
1785
+ name?: string | undefined;
1786
+ encryptedValue?: string | undefined;
1787
+ } | {
1788
+ role: "tool";
1789
+ toolCallId: string;
1790
+ content: string;
1791
+ id: string;
1792
+ encryptedValue?: string | undefined;
1793
+ error?: string | undefined;
1794
+ } | {
1795
+ role: "activity";
1796
+ content: Record<string, any>;
1797
+ id: string;
1798
+ activityType: string;
1799
+ } | {
1800
+ role: "reasoning";
1801
+ content: string;
1802
+ id: string;
1803
+ encryptedValue?: string | undefined;
1804
+ })[];
1805
+ isLoading: boolean;
1806
+ }>;
1807
+ handleCopy(): void;
1808
+ handleThumbsUp(): void;
1809
+ handleThumbsDown(): void;
1810
+ handleReadAloud(): void;
1811
+ handleRegenerate(): void;
1812
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAssistantMessage, [{ optional: true; }]>;
1813
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAssistantMessage, "copilot-chat-assistant-message", never, { "markdownRendererClass": { "alias": "markdownRendererClass"; "required": false; "isSignal": true; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; "isSignal": true; }; "copyButtonClass": { "alias": "copyButtonClass"; "required": false; "isSignal": true; }; "thumbsUpButtonClass": { "alias": "thumbsUpButtonClass"; "required": false; "isSignal": true; }; "thumbsDownButtonClass": { "alias": "thumbsDownButtonClass"; "required": false; "isSignal": true; }; "readAloudButtonClass": { "alias": "readAloudButtonClass"; "required": false; "isSignal": true; }; "regenerateButtonClass": { "alias": "regenerateButtonClass"; "required": false; "isSignal": true; }; "toolCallsViewClass": { "alias": "toolCallsViewClass"; "required": false; "isSignal": true; }; "markdownRendererComponent": { "alias": "markdownRendererComponent"; "required": false; "isSignal": true; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; "isSignal": true; }; "copyButtonComponent": { "alias": "copyButtonComponent"; "required": false; "isSignal": true; }; "thumbsUpButtonComponent": { "alias": "thumbsUpButtonComponent"; "required": false; "isSignal": true; }; "thumbsDownButtonComponent": { "alias": "thumbsDownButtonComponent"; "required": false; "isSignal": true; }; "readAloudButtonComponent": { "alias": "readAloudButtonComponent"; "required": false; "isSignal": true; }; "regenerateButtonComponent": { "alias": "regenerateButtonComponent"; "required": false; "isSignal": true; }; "toolCallsViewComponent": { "alias": "toolCallsViewComponent"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; "isSignal": true; }; "toolbarVisible": { "alias": "toolbarVisible"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "thumbsUp": "thumbsUp"; "thumbsDown": "thumbsDown"; "readAloud": "readAloud"; "regenerate": "regenerate"; }, ["markdownRendererTemplate", "toolbarTemplate", "copyButtonTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate", "toolCallsViewTemplate"], never, true, never>;
1814
+ }
1815
+
1816
+ declare class CopilotChatAttachmentQueue {
1817
+ readonly attachments: _angular_core.InputSignal<Attachment[]>;
1818
+ readonly inputClass: _angular_core.InputSignal<string>;
1819
+ readonly removeAttachment: _angular_core.OutputEmitterRef<string>;
1820
+ readonly computedClass: _angular_core.Signal<string>;
1821
+ itemClass(attachment: Attachment): string;
1822
+ sourceUrl(attachment: Attachment): string;
1823
+ documentIcon(attachment: Attachment): string;
1824
+ fileSize(attachment: Attachment): string;
1825
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAttachmentQueue, never>;
1826
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAttachmentQueue, "copilot-chat-attachment-queue", never, { "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "removeAttachment": "removeAttachment"; }, never, never, true, never>;
1827
+ }
1828
+
1829
+ declare class CopilotChatAttachmentRenderer {
1830
+ readonly type: _angular_core.InputSignal<AttachmentModality>;
1831
+ readonly source: _angular_core.InputSignal<{
1832
+ type: "data";
1833
+ value: string;
1834
+ mimeType: string;
1835
+ } | {
1836
+ type: "url";
1837
+ value: string;
1838
+ mimeType?: string | undefined;
1839
+ }>;
1840
+ readonly filename: _angular_core.InputSignal<string>;
1841
+ readonly inputClass: _angular_core.InputSignal<string>;
1842
+ readonly imageFailed: _angular_core.WritableSignal<boolean>;
1843
+ readonly sourceUrl: _angular_core.Signal<string>;
1844
+ readonly documentIcon: _angular_core.Signal<string>;
1845
+ readonly imageWrapperClass: _angular_core.Signal<string>;
1846
+ readonly failedImageClass: _angular_core.Signal<string>;
1847
+ readonly audioClass: _angular_core.Signal<string>;
1848
+ readonly videoClass: _angular_core.Signal<string>;
1849
+ readonly documentClass: _angular_core.Signal<string>;
1850
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAttachmentRenderer, never>;
1851
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAttachmentRenderer, "copilot-chat-attachment-renderer", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; "source": { "alias": "source"; "required": true; "isSignal": true; }; "filename": { "alias": "filename"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1852
+ }
1853
+
1854
+ declare class CopilotChatAttachmentsDirective {
1855
+ readonly config: _angular_core.InputSignal<AttachmentsConfig>;
1856
+ private readonly chat;
1857
+ private readonly host;
1858
+ private readonly renderer;
1859
+ private readonly destroyRef;
1860
+ private fileInput?;
1861
+ private get enabled();
1862
+ onDragOver(event: DragEvent): void;
1863
+ onDragLeave(event: DragEvent): void;
1864
+ onDrop(event: DragEvent): Promise<void>;
1865
+ onPaste(event: ClipboardEvent): Promise<void>;
1866
+ openFilePicker(): void;
1867
+ removeAttachment(id: string): void;
1868
+ consume(): Attachment[];
1869
+ buildContent(value: string, attachments: Attachment[]): InputContent[];
1870
+ private ensureFileInput;
1871
+ private handleFileInputChange;
1872
+ private processFiles;
1873
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAttachmentsDirective, never>;
1874
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CopilotChatAttachmentsDirective, "[copilotChatAttachments]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1875
+ }
1876
+
1877
+ /**
1878
+ * Mode of the chat input component
1879
+ */
1880
+ type CopilotChatInputMode = "input" | "transcribe" | "processing";
1881
+ /**
1882
+ * Represents a menu item in the tools menu
1883
+ */
1884
+ type ToolsMenuItem = {
1885
+ label: string;
1886
+ } & ({
1887
+ action: () => void;
1888
+ items?: never;
1889
+ } | {
1890
+ action?: never;
1891
+ items: (ToolsMenuItem | "-")[];
1892
+ });
1893
+ /**
1894
+ * Audio recorder state
1895
+ */
1896
+ type AudioRecorderState = "idle" | "recording" | "processing";
1897
+ /**
1898
+ * Error class for audio recorder failures
1899
+ */
1900
+ declare class AudioRecorderError extends Error {
1901
+ constructor(message: string);
1902
+ }
1903
+ /**
1904
+ * Props for textarea component
1905
+ */
1906
+ interface CopilotChatTextareaProps {
1907
+ value?: string;
1908
+ placeholder?: string;
1909
+ maxRows?: number;
1910
+ autoFocus?: boolean;
1911
+ disabled?: boolean;
1912
+ onChange?: (value: string) => void;
1913
+ onKeyDown?: (event: KeyboardEvent) => void;
1914
+ inputClass?: string;
1915
+ style?: any;
1916
+ rows?: number;
1917
+ cols?: number;
1918
+ readonly?: boolean;
1919
+ spellcheck?: boolean;
1920
+ wrap?: "hard" | "soft" | "off";
1921
+ }
1922
+ /**
1923
+ * Props for button components
1924
+ */
1925
+ interface CopilotChatButtonProps {
1926
+ disabled?: boolean;
1927
+ onClick?: () => void;
1928
+ inputClass?: string;
1929
+ style?: any;
1930
+ type?: "button" | "submit" | "reset";
1931
+ ariaLabel?: string;
1932
+ ariaPressed?: boolean;
1933
+ ariaExpanded?: boolean;
1934
+ title?: string;
1935
+ }
1936
+ /**
1937
+ * Props for toolbar button with tooltip
1938
+ */
1939
+ interface CopilotChatToolbarButtonProps extends CopilotChatButtonProps {
1940
+ icon?: TemplateRef<any>;
1941
+ tooltip?: string;
1942
+ variant?: "primary" | "secondary";
1943
+ }
1944
+ /**
1945
+ * Props for tools menu button
1946
+ */
1947
+ interface CopilotChatToolsButtonProps extends CopilotChatButtonProps {
1948
+ toolsMenu?: (ToolsMenuItem | "-")[];
1949
+ }
1950
+ /**
1951
+ * Props for audio recorder
1952
+ */
1953
+ interface CopilotChatAudioRecorderProps {
1954
+ inputClass?: string;
1955
+ style?: any;
1956
+ onStateChange?: (state: AudioRecorderState) => void;
1957
+ showControls?: boolean;
1958
+ maxDuration?: number;
1959
+ }
1960
+ /**
1961
+ * Props for toolbar
1962
+ */
1963
+ interface CopilotChatToolbarProps {
1964
+ inputClass?: string;
1965
+ style?: any;
1966
+ position?: "top" | "bottom";
1967
+ alignment?: "left" | "center" | "right" | "space-between";
1968
+ }
1969
+ /**
1970
+ * Slot configuration for chat input
1971
+ */
1972
+ interface CopilotChatInputSlots {
1973
+ textArea?: Type<any> | TemplateRef<any>;
1974
+ sendButton?: Type<any> | TemplateRef<any>;
1975
+ startTranscribeButton?: Type<any> | TemplateRef<any>;
1976
+ cancelTranscribeButton?: Type<any> | TemplateRef<any>;
1977
+ finishTranscribeButton?: Type<any> | TemplateRef<any>;
1978
+ addFileButton?: Type<any> | TemplateRef<any>;
1979
+ toolsButton?: Type<any> | TemplateRef<any>;
1980
+ toolbar?: Type<any> | TemplateRef<any>;
1981
+ audioRecorder?: Type<any> | TemplateRef<any>;
1982
+ }
1983
+ /**
1984
+ * Input configuration for the chat input component
1985
+ */
1986
+ interface CopilotChatInputConfig {
1987
+ mode?: CopilotChatInputMode;
1988
+ toolsMenu?: (ToolsMenuItem | "-")[];
1989
+ autoFocus?: boolean;
1990
+ additionalToolbarItems?: TemplateRef<any>;
1991
+ value?: string;
1992
+ class?: string;
1993
+ }
1994
+ /**
1995
+ * Output events for the chat input component
1996
+ */
1997
+ interface CopilotChatInputOutputs {
1998
+ submitMessage: (value: string) => void;
1999
+ startTranscribe: () => void;
2000
+ cancelTranscribe: () => void;
2001
+ finishTranscribe: () => void;
2002
+ addFile: () => void;
2003
+ changeValue: (value: string) => void;
2004
+ }
2005
+
2006
+ declare class CopilotChatAudioRecorder implements AfterViewInit {
2007
+ private readonly canvasRef;
2008
+ inputClass: _angular_core.InputSignal<string>;
2009
+ inputShowControls: _angular_core.InputSignal<boolean>;
2010
+ stateChange: _angular_core.OutputEmitterRef<AudioRecorderState>;
2011
+ error: _angular_core.OutputEmitterRef<AudioRecorderError>;
2012
+ readonly state: _angular_core.WritableSignal<AudioRecorderState>;
2013
+ readonly computedClass: _angular_core.Signal<string>;
2014
+ private mediaRecorder?;
2015
+ private stream?;
2016
+ private audioContext?;
2017
+ private analyser?;
2018
+ private audioChunks;
2019
+ private starting;
2020
+ private animationFrameId?;
2021
+ private amplitudeHistory;
2022
+ private scrollOffset;
2023
+ private smoothedAmplitude;
2024
+ private fadeOpacity;
2025
+ constructor();
2026
+ ngAfterViewInit(): void;
2027
+ /**
2028
+ * Request microphone access and start recording.
2029
+ */
2030
+ start(): Promise<void>;
2031
+ /**
2032
+ * Stop recording and resolve with the captured audio.
2033
+ */
2034
+ stop(): Promise<Blob>;
2035
+ getState(): AudioRecorderState;
2036
+ /**
2037
+ * Release every capture/animation resource. Safe to call repeatedly.
2038
+ */
2039
+ dispose(): void;
2040
+ private setState;
2041
+ private toRecorderError;
2042
+ private cleanup;
2043
+ /** RMS amplitude from time-domain samples (128 is silence). */
2044
+ private calculateAmplitude;
2045
+ private startAnimation;
2046
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAudioRecorder, never>;
2047
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAudioRecorder, "copilot-chat-audio-recorder", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "inputShowControls": { "alias": "inputShowControls"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "error": "error"; }, never, never, true, never>;
2048
+ }
2049
+
2050
+ declare class CopilotChatSendButton {
2051
+ disabled: _angular_core.InputSignal<boolean>;
2052
+ clicked: _angular_core.OutputEmitterRef<void>;
2053
+ readonly ArrowUpIcon: lucide_angular.LucideIconData;
2054
+ buttonClass: string;
2055
+ onClick(): void;
2056
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatSendButton, never>;
2057
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatSendButton, "copilot-chat-send-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2058
+ }
2059
+ declare class CopilotChatStartTranscribeButton {
2060
+ disabled: _angular_core.InputSignal<boolean>;
2061
+ clicked: _angular_core.OutputEmitterRef<void>;
2062
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2063
+ readonly MicIcon: lucide_angular.LucideIconData;
2064
+ buttonClass: string;
2065
+ get label(): string;
2066
+ onClick(): void;
2067
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatStartTranscribeButton, never>;
2068
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatStartTranscribeButton, "copilot-chat-start-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2069
+ }
2070
+ declare class CopilotChatCancelTranscribeButton {
2071
+ disabled: _angular_core.InputSignal<boolean>;
2072
+ clicked: _angular_core.OutputEmitterRef<void>;
2073
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2074
+ readonly XIcon: lucide_angular.LucideIconData;
2075
+ buttonClass: string;
2076
+ get label(): string;
2077
+ onClick(): void;
2078
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatCancelTranscribeButton, never>;
2079
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatCancelTranscribeButton, "copilot-chat-cancel-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2080
+ }
2081
+ declare class CopilotChatFinishTranscribeButton {
2082
+ disabled: _angular_core.InputSignal<boolean>;
2083
+ clicked: _angular_core.OutputEmitterRef<void>;
2084
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2085
+ readonly CheckIcon: lucide_angular.LucideIconData;
2086
+ buttonClass: string;
2087
+ get label(): string;
2088
+ onClick(): void;
2089
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatFinishTranscribeButton, never>;
2090
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatFinishTranscribeButton, "copilot-chat-finish-transcribe-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2091
+ }
2092
+ declare class CopilotChatAddFileButton {
2093
+ disabled: _angular_core.InputSignal<boolean>;
2094
+ clicked: _angular_core.OutputEmitterRef<void>;
2095
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2096
+ readonly PlusIcon: lucide_angular.LucideIconData;
2097
+ buttonClass: string;
2098
+ get label(): string;
2099
+ onClick(): void;
2100
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatAddFileButton, never>;
2101
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatAddFileButton, "copilot-chat-add-file-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2102
+ }
2103
+ declare class CopilotChatToolbarButton {
2104
+ disabled: _angular_core.WritableSignal<boolean>;
2105
+ variant: _angular_core.WritableSignal<"primary" | "secondary">;
2106
+ customClass: _angular_core.WritableSignal<string>;
2107
+ title: _angular_core.WritableSignal<string>;
2108
+ clicked: _angular_core.OutputEmitterRef<void>;
2109
+ computedClass: _angular_core.Signal<string>;
2110
+ onClick(): void;
2111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolbarButton, never>;
2112
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolbarButton, "copilot-chat-toolbar-button", never, {}, { "clicked": "clicked"; }, never, ["*"], true, never>;
2113
+ }
2114
+
2115
+ declare class CopilotChatTextarea implements AfterViewInit {
2116
+ private elementRef;
2117
+ get textareaRef(): ElementRef<any>;
2118
+ inputValue: _angular_core.InputSignal<string>;
2119
+ inputPlaceholder: _angular_core.InputSignal<string>;
2120
+ inputMaxRows: _angular_core.InputSignal<number>;
2121
+ inputAutoFocus: _angular_core.InputSignal<boolean>;
2122
+ inputDisabled: _angular_core.InputSignal<boolean>;
2123
+ inputClass: _angular_core.InputSignal<string>;
2124
+ valueChange: _angular_core.OutputEmitterRef<string>;
2125
+ keyDown: _angular_core.OutputEmitterRef<KeyboardEvent>;
2126
+ readonly chatLabels: _copilotkit_angular.CopilotChatLabels;
2127
+ readonly chatState: _copilotkit_angular.ChatState;
2128
+ maxHeight: _angular_core.WritableSignal<number>;
2129
+ computedValue: _angular_core.Signal<string>;
2130
+ placeholder: _angular_core.Signal<string>;
2131
+ disabled: _angular_core.Signal<boolean>;
2132
+ computedClass: _angular_core.Signal<string>;
2133
+ constructor();
2134
+ ngAfterViewInit(): void;
2135
+ onInput(event: Event): void;
2136
+ onKeyDown(event: KeyboardEvent): void;
2137
+ private calculateMaxHeight;
2138
+ private adjustHeight;
2139
+ /**
2140
+ * Public method to focus the textarea
2141
+ */
2142
+ focus(): void;
2143
+ /**
2144
+ * Public method to get current value
2145
+ */
2146
+ getValue(): string;
2147
+ /**
2148
+ * Public method to set value programmatically
2149
+ */
2150
+ setValue(value: string): void;
2151
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatTextarea, never>;
2152
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatTextarea, "textarea[copilotChatTextarea]", never, { "inputValue": { "alias": "inputValue"; "required": false; "isSignal": true; }; "inputPlaceholder": { "alias": "inputPlaceholder"; "required": false; "isSignal": true; }; "inputMaxRows": { "alias": "inputMaxRows"; "required": false; "isSignal": true; }; "inputAutoFocus": { "alias": "inputAutoFocus"; "required": false; "isSignal": true; }; "inputDisabled": { "alias": "inputDisabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "keyDown": "keyDown"; }, never, never, true, never>;
2153
+ }
2154
+
2155
+ declare class CopilotChatToolbar {
2156
+ readonly inputClass: _angular_core.InputSignal<string>;
2157
+ readonly computedClass: _angular_core.Signal<string>;
2158
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolbar, never>;
2159
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolbar, "div[copilotChatToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2160
+ }
2161
+
2162
+ declare class CopilotChatToolsMenu {
2163
+ readonly PlusIcon: lucide_angular.LucideIconData;
2164
+ readonly ChevronRightIcon: lucide_angular.LucideIconData;
2165
+ inputToolsMenu: _angular_core.InputSignal<(ToolsMenuItem | "-")[]>;
2166
+ inputDisabled: _angular_core.InputSignal<boolean>;
2167
+ inputClass: _angular_core.InputSignal<string>;
2168
+ inputAddFile: _angular_core.InputSignal<() => void>;
2169
+ private labels;
2170
+ toolsMenu: _angular_core.Signal<(ToolsMenuItem | "-")[]>;
2171
+ disabled: _angular_core.Signal<boolean>;
2172
+ customClass: _angular_core.Signal<string>;
2173
+ addFile: _angular_core.Signal<() => void>;
2174
+ menuItems: _angular_core.Signal<(ToolsMenuItem | "-")[]>;
2175
+ hasItems: _angular_core.Signal<boolean>;
2176
+ triggerDisabled: _angular_core.Signal<boolean>;
2177
+ readonly label: string;
2178
+ tooltipLabel: _angular_core.Signal<string>;
2179
+ buttonClass: _angular_core.Signal<string>;
2180
+ isMenuItem(item: any): item is ToolsMenuItem;
2181
+ handleItemClick(item: ToolsMenuItem): void;
2182
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatToolsMenu, never>;
2183
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatToolsMenu, "copilot-chat-tools-menu", never, { "inputToolsMenu": { "alias": "inputToolsMenu"; "required": false; "isSignal": true; }; "inputDisabled": { "alias": "inputDisabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "inputAddFile": { "alias": "inputAddFile"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2184
+ }
2185
+
2186
+ /**
2187
+ * Context provided to slot templates
2188
+ */
2189
+ interface SendButtonContext {
2190
+ send: () => void;
2191
+ disabled: boolean;
2192
+ value: string;
2193
+ }
2194
+ interface ToolbarContext {
2195
+ mode: CopilotChatInputMode;
2196
+ value: string;
2197
+ }
2198
+ declare class CopilotChatInput implements AfterViewInit, OnDestroy {
2199
+ readonly textAreaRef: _angular_core.Signal<CopilotChatTextarea>;
2200
+ readonly audioRecorderRef: _angular_core.Signal<CopilotChatAudioRecorder>;
2201
+ readonly sendButtonTemplate: _angular_core.Signal<TemplateRef<SendButtonContext>>;
2202
+ readonly toolbarTemplate: _angular_core.Signal<TemplateRef<ToolbarContext>>;
2203
+ readonly textAreaTemplate: _angular_core.Signal<TemplateRef<any>>;
2204
+ readonly audioRecorderTemplate: _angular_core.Signal<TemplateRef<any>>;
2205
+ readonly startTranscribeButtonTemplate: _angular_core.Signal<TemplateRef<any>>;
2206
+ readonly cancelTranscribeButtonTemplate: _angular_core.Signal<TemplateRef<any>>;
2207
+ readonly finishTranscribeButtonTemplate: _angular_core.Signal<TemplateRef<any>>;
2208
+ readonly addFileButtonTemplate: _angular_core.Signal<TemplateRef<any>>;
2209
+ readonly toolsButtonTemplate: _angular_core.Signal<TemplateRef<any>>;
2210
+ sendButtonClass: _angular_core.InputSignal<string>;
2211
+ toolbarClass: _angular_core.InputSignal<string>;
2212
+ textAreaClass: _angular_core.InputSignal<string>;
2213
+ textAreaMaxRows: _angular_core.InputSignal<number>;
2214
+ textAreaPlaceholder: _angular_core.InputSignal<string>;
2215
+ audioRecorderClass: _angular_core.InputSignal<string>;
2216
+ startTranscribeButtonClass: _angular_core.InputSignal<string>;
2217
+ cancelTranscribeButtonClass: _angular_core.InputSignal<string>;
2218
+ finishTranscribeButtonClass: _angular_core.InputSignal<string>;
2219
+ addFileButtonClass: _angular_core.InputSignal<string>;
2220
+ toolsButtonClass: _angular_core.InputSignal<string>;
2221
+ sendButtonComponent: _angular_core.InputSignal<Type<any>>;
2222
+ toolbarComponent: _angular_core.InputSignal<Type<any>>;
2223
+ textAreaComponent: _angular_core.InputSignal<Type<any>>;
2224
+ audioRecorderComponent: _angular_core.InputSignal<Type<any>>;
2225
+ startTranscribeButtonComponent: _angular_core.InputSignal<Type<any>>;
2226
+ cancelTranscribeButtonComponent: _angular_core.InputSignal<Type<any>>;
2227
+ finishTranscribeButtonComponent: _angular_core.InputSignal<Type<any>>;
2228
+ addFileButtonComponent: _angular_core.InputSignal<Type<any>>;
2229
+ toolsButtonComponent: _angular_core.InputSignal<Type<any>>;
2230
+ mode: _angular_core.InputSignal<CopilotChatInputMode>;
2231
+ toolsMenu: _angular_core.InputSignal<(ToolsMenuItem | "-")[]>;
2232
+ autoFocus: _angular_core.InputSignal<boolean>;
2233
+ value: _angular_core.InputSignal<string>;
2234
+ inputClass: _angular_core.InputSignal<string>;
2235
+ additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any>>;
2236
+ submitMessage: _angular_core.OutputEmitterRef<string>;
2237
+ startTranscribe: _angular_core.OutputEmitterRef<void>;
2238
+ cancelTranscribe: _angular_core.OutputEmitterRef<void>;
2239
+ finishTranscribe: _angular_core.OutputEmitterRef<void>;
2240
+ finishTranscribeWithAudio: _angular_core.OutputEmitterRef<Blob>;
2241
+ addFile: _angular_core.OutputEmitterRef<void>;
2242
+ valueChange: _angular_core.OutputEmitterRef<string>;
2243
+ readonly ArrowUpIcon: lucide_angular.LucideIconData;
2244
+ readonly defaultButtonClass: string;
2245
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2246
+ readonly chatState: _copilotkit_angular.ChatState;
2247
+ modeSignal: _angular_core.WritableSignal<CopilotChatInputMode>;
2248
+ toolsMenuSignal: _angular_core.WritableSignal<(ToolsMenuItem | "-")[]>;
2249
+ autoFocusSignal: _angular_core.WritableSignal<boolean>;
2250
+ customClass: _angular_core.WritableSignal<string>;
2251
+ defaultAudioRecorder: typeof CopilotChatAudioRecorder;
2252
+ defaultSendButton: any;
2253
+ CopilotChatToolbar: typeof CopilotChatToolbar;
2254
+ CopilotChatAddFileButton: typeof CopilotChatAddFileButton;
2255
+ CopilotChatToolsMenu: typeof CopilotChatToolsMenu;
2256
+ CopilotChatCancelTranscribeButton: typeof CopilotChatCancelTranscribeButton;
2257
+ CopilotChatFinishTranscribeButton: typeof CopilotChatFinishTranscribeButton;
2258
+ CopilotChatStartTranscribeButton: typeof CopilotChatStartTranscribeButton;
2259
+ computedMode: _angular_core.Signal<CopilotChatInputMode>;
2260
+ computedToolsMenu: _angular_core.Signal<(ToolsMenuItem | "-")[]>;
2261
+ computedAutoFocus: _angular_core.Signal<boolean>;
2262
+ computedValue: _angular_core.Signal<string>;
2263
+ addFileButtonDisabled: _angular_core.Signal<boolean>;
2264
+ addFileMenuAction: _angular_core.Signal<() => void>;
2265
+ sendButtonDisabled: _angular_core.Signal<boolean>;
2266
+ computedClass: _angular_core.Signal<string>;
2267
+ defaultTextAreaClass: _angular_core.Signal<string>;
2268
+ sendButtonContext: _angular_core.Signal<SendButtonContext>;
2269
+ toolbarContext: _angular_core.Signal<ToolbarContext>;
2270
+ textAreaContext: _angular_core.Signal<{
2271
+ value: string;
2272
+ autoFocus: boolean;
2273
+ disabled: boolean;
2274
+ maxRows: number;
2275
+ placeholder: string;
2276
+ inputClass: string;
2277
+ onKeyDown: (event: KeyboardEvent) => void;
2278
+ onChange: (value: string) => void;
2279
+ }>;
2280
+ audioRecorderContext: _angular_core.Signal<{
2281
+ inputShowControls: boolean;
2282
+ }>;
2283
+ toolsContext: _angular_core.Signal<{
2284
+ inputToolsMenu: (ToolsMenuItem | "-")[];
2285
+ inputDisabled: boolean;
2286
+ }>;
2287
+ constructor();
2288
+ addFileButtonOutputs: {
2289
+ clicked: () => void;
2290
+ };
2291
+ cancelTranscribeButtonOutputs: {
2292
+ clicked: () => void;
2293
+ };
2294
+ finishTranscribeButtonOutputs: {
2295
+ clicked: () => Promise<void>;
2296
+ };
2297
+ startTranscribeButtonOutputs: {
2298
+ clicked: () => void;
2299
+ };
2300
+ sendButtonOutputs: {
2301
+ clicked: () => void;
2302
+ click: () => void;
2303
+ };
2304
+ ngAfterViewInit(): void;
2305
+ ngOnDestroy(): void;
2306
+ handleKeyDown(event: KeyboardEvent): void;
2307
+ handleValueChange(value: string): void;
2308
+ send(): void;
2309
+ handleStartTranscribe(): void;
2310
+ handleCancelTranscribe(): void;
2311
+ handleFinishTranscribe(): Promise<void>;
2312
+ handleAddFile(): void;
2313
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatInput, never>;
2314
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatInput, "copilot-chat-input", never, { "sendButtonClass": { "alias": "sendButtonClass"; "required": false; "isSignal": true; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; "isSignal": true; }; "textAreaClass": { "alias": "textAreaClass"; "required": false; "isSignal": true; }; "textAreaMaxRows": { "alias": "textAreaMaxRows"; "required": false; "isSignal": true; }; "textAreaPlaceholder": { "alias": "textAreaPlaceholder"; "required": false; "isSignal": true; }; "audioRecorderClass": { "alias": "audioRecorderClass"; "required": false; "isSignal": true; }; "startTranscribeButtonClass": { "alias": "startTranscribeButtonClass"; "required": false; "isSignal": true; }; "cancelTranscribeButtonClass": { "alias": "cancelTranscribeButtonClass"; "required": false; "isSignal": true; }; "finishTranscribeButtonClass": { "alias": "finishTranscribeButtonClass"; "required": false; "isSignal": true; }; "addFileButtonClass": { "alias": "addFileButtonClass"; "required": false; "isSignal": true; }; "toolsButtonClass": { "alias": "toolsButtonClass"; "required": false; "isSignal": true; }; "sendButtonComponent": { "alias": "sendButtonComponent"; "required": false; "isSignal": true; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; "isSignal": true; }; "textAreaComponent": { "alias": "textAreaComponent"; "required": false; "isSignal": true; }; "audioRecorderComponent": { "alias": "audioRecorderComponent"; "required": false; "isSignal": true; }; "startTranscribeButtonComponent": { "alias": "startTranscribeButtonComponent"; "required": false; "isSignal": true; }; "cancelTranscribeButtonComponent": { "alias": "cancelTranscribeButtonComponent"; "required": false; "isSignal": true; }; "finishTranscribeButtonComponent": { "alias": "finishTranscribeButtonComponent"; "required": false; "isSignal": true; }; "addFileButtonComponent": { "alias": "addFileButtonComponent"; "required": false; "isSignal": true; }; "toolsButtonComponent": { "alias": "toolsButtonComponent"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "toolsMenu": { "alias": "toolsMenu"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; "isSignal": true; }; }, { "submitMessage": "submitMessage"; "startTranscribe": "startTranscribe"; "cancelTranscribe": "cancelTranscribe"; "finishTranscribe": "finishTranscribe"; "finishTranscribeWithAudio": "finishTranscribeWithAudio"; "addFile": "addFile"; "valueChange": "valueChange"; }, ["sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "startTranscribeButtonTemplate", "cancelTranscribeButtonTemplate", "finishTranscribeButtonTemplate", "addFileButtonTemplate", "toolsButtonTemplate"], never, true, never>;
2315
+ }
2316
+
2317
+ /**
2318
+ * Default components used by CopilotChatInput.
2319
+ * These can be imported and reused when creating custom slot implementations.
2320
+ *
2321
+ * @example
2322
+ * ```typescript
2323
+ * import { CopilotChatInputDefaults } from '@copilotkit/angular';
2324
+ *
2325
+ * @Component({
2326
+ * template: `
2327
+ * <copilot-chat-input [sendButtonSlot]="CustomSendButton">
2328
+ * </copilot-chat-input>
2329
+ * `
2330
+ * })
2331
+ * export class MyComponent {
2332
+ * CustomSendButton = class extends CopilotChatInputDefaults.SendButton {
2333
+ * // Custom implementation
2334
+ * };
2335
+ * }
2336
+ * ```
2337
+ */
2338
+ declare class CopilotChatInputDefaults {
2339
+ static readonly TextArea: typeof CopilotChatTextarea;
2340
+ static readonly AudioRecorder: typeof CopilotChatAudioRecorder;
2341
+ static readonly SendButton: typeof CopilotChatSendButton;
2342
+ static readonly StartTranscribeButton: typeof CopilotChatStartTranscribeButton;
2343
+ static readonly CancelTranscribeButton: typeof CopilotChatCancelTranscribeButton;
2344
+ static readonly FinishTranscribeButton: typeof CopilotChatFinishTranscribeButton;
2345
+ static readonly AddFileButton: typeof CopilotChatAddFileButton;
2346
+ static readonly Toolbar: typeof CopilotChatToolbar;
2347
+ static readonly ToolsMenu: typeof CopilotChatToolsMenu;
2348
+ }
2349
+
2350
+ interface CopilotChatUserMessageOnEditMessageProps {
2351
+ message: UserMessage;
2352
+ }
2353
+ interface CopilotChatUserMessageOnSwitchToBranchProps {
2354
+ message: UserMessage;
2355
+ branchIndex: number;
2356
+ numberOfBranches: number;
2357
+ }
2358
+ interface MessageRendererContext {
2359
+ content: string;
2360
+ }
2361
+ interface CopyButtonContext {
2362
+ content?: string;
2363
+ copied?: boolean;
2364
+ }
2365
+ interface EditButtonContext {
2366
+ }
2367
+ interface BranchNavigationContext {
2368
+ currentBranch: number;
2369
+ numberOfBranches: number;
2370
+ onSwitchToBranch?: (props: CopilotChatUserMessageOnSwitchToBranchProps) => void;
2371
+ message: UserMessage;
2372
+ }
2373
+ interface UserMessageToolbarContext {
2374
+ children?: any;
2375
+ }
2376
+
2377
+ declare class CopilotChatUserMessageRenderer {
2378
+ readonly content: _angular_core.InputSignal<string>;
2379
+ readonly inputClass: _angular_core.InputSignal<string>;
2380
+ readonly computedClass: _angular_core.Signal<string>;
2381
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageRenderer, never>;
2382
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageRenderer, "copilot-chat-user-message-renderer", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2383
+ }
2384
+
2385
+ declare class CopilotChatUserMessageToolbarButton {
2386
+ title: _angular_core.InputSignal<string>;
2387
+ disabled: _angular_core.InputSignal<boolean>;
2388
+ inputClass: _angular_core.InputSignal<string>;
2389
+ computedClass: _angular_core.Signal<string>;
2390
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageToolbarButton, never>;
2391
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageToolbarButton, "button[copilotChatUserMessageToolbarButton]", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof CopilotTooltip; inputs: { "copilotTooltip": "title"; "tooltipPosition": "tooltipPosition"; "tooltipDelay": "tooltipDelay"; }; outputs: {}; }]>;
2392
+ }
2393
+ declare class CopilotChatUserMessageCopyButton {
2394
+ readonly title: _angular_core.InputSignal<string>;
2395
+ readonly disabled: _angular_core.InputSignal<boolean>;
2396
+ readonly inputClass: _angular_core.InputSignal<string>;
2397
+ readonly content: _angular_core.InputSignal<string>;
2398
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
2399
+ readonly CopyIcon: lucide_angular.LucideIconData;
2400
+ readonly CheckIcon: lucide_angular.LucideIconData;
2401
+ readonly copied: _angular_core.WritableSignal<boolean>;
2402
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2403
+ handleCopy(): void;
2404
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageCopyButton, never>;
2405
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageCopyButton, "copilot-chat-user-message-copy-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2406
+ }
2407
+ declare class CopilotChatUserMessageEditButton {
2408
+ title: _angular_core.InputSignal<string>;
2409
+ disabled: _angular_core.InputSignal<boolean>;
2410
+ inputClass: _angular_core.InputSignal<string>;
2411
+ clicked: _angular_core.OutputEmitterRef<void>;
2412
+ readonly EditIcon: lucide_angular.LucideIconData;
2413
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
2414
+ handleEdit(): void;
2415
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageEditButton, never>;
2416
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageEditButton, "copilot-chat-user-message-edit-button", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
2417
+ }
2418
+
2419
+ declare class CopilotChatUserMessageToolbar {
2420
+ readonly inputClass: _angular_core.InputSignal<string>;
2421
+ readonly computedClass: _angular_core.Signal<string>;
2422
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageToolbar, never>;
2423
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageToolbar, "div[copilotChatUserMessageToolbar]", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2424
+ }
2425
+
2426
+ declare class CopilotChatUserMessageBranchNavigation {
2427
+ currentBranch: _angular_core.InputSignal<number>;
2428
+ numberOfBranches: _angular_core.InputSignal<number>;
2429
+ message: _angular_core.InputSignal<{
2430
+ role: "user";
2431
+ content: string | ({
2432
+ type: "text";
2433
+ text: string;
2434
+ } | {
2435
+ type: "image";
2436
+ source: {
2437
+ type: "data";
2438
+ value: string;
2439
+ mimeType: string;
2440
+ } | {
2441
+ type: "url";
2442
+ value: string;
2443
+ mimeType?: string | undefined;
2444
+ };
2445
+ metadata?: unknown;
2446
+ } | {
2447
+ type: "audio";
2448
+ source: {
2449
+ type: "data";
2450
+ value: string;
2451
+ mimeType: string;
2452
+ } | {
2453
+ type: "url";
2454
+ value: string;
2455
+ mimeType?: string | undefined;
2456
+ };
2457
+ metadata?: unknown;
2458
+ } | {
2459
+ type: "video";
2460
+ source: {
2461
+ type: "data";
2462
+ value: string;
2463
+ mimeType: string;
2464
+ } | {
2465
+ type: "url";
2466
+ value: string;
2467
+ mimeType?: string | undefined;
2468
+ };
2469
+ metadata?: unknown;
2470
+ } | {
2471
+ type: "document";
2472
+ source: {
2473
+ type: "data";
2474
+ value: string;
2475
+ mimeType: string;
2476
+ } | {
2477
+ type: "url";
2478
+ value: string;
2479
+ mimeType?: string | undefined;
2480
+ };
2481
+ metadata?: unknown;
2482
+ } | {
2483
+ type: "binary";
2484
+ mimeType: string;
2485
+ id?: string | undefined;
2486
+ data?: string | undefined;
2487
+ url?: string | undefined;
2488
+ filename?: string | undefined;
2489
+ })[];
2490
+ id: string;
2491
+ name?: string | undefined;
2492
+ encryptedValue?: string | undefined;
2493
+ }>;
2494
+ inputClass: _angular_core.InputSignal<string>;
2495
+ switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
2496
+ readonly ChevronLeftIcon: lucide_angular.LucideIconData;
2497
+ readonly ChevronRightIcon: lucide_angular.LucideIconData;
2498
+ readonly buttonClass: string;
2499
+ showNavigation: _angular_core.Signal<boolean>;
2500
+ canGoPrev: _angular_core.Signal<boolean>;
2501
+ canGoNext: _angular_core.Signal<boolean>;
2502
+ computedClass: _angular_core.Signal<string>;
2503
+ handlePrevious(): void;
2504
+ handleNext(): void;
2505
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessageBranchNavigation, never>;
2506
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessageBranchNavigation, "copilot-chat-user-message-branch-navigation", never, { "currentBranch": { "alias": "currentBranch"; "required": false; "isSignal": true; }; "numberOfBranches": { "alias": "numberOfBranches"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "switchToBranch": "switchToBranch"; }, never, never, true, never>;
2507
+ }
2508
+
2509
+ type UserMessageMediaPart = ImageInputPart | AudioInputPart | VideoInputPart | DocumentInputPart;
2510
+
2511
+ declare class CopilotChatUserMessage {
2512
+ messageRendererTemplate?: TemplateRef<MessageRendererContext>;
2513
+ toolbarTemplate?: TemplateRef<UserMessageToolbarContext>;
2514
+ copyButtonTemplate?: TemplateRef<CopyButtonContext>;
2515
+ editButtonTemplate?: TemplateRef<EditButtonContext>;
2516
+ branchNavigationTemplate?: TemplateRef<BranchNavigationContext>;
2517
+ messageRendererClass: _angular_core.InputSignal<string>;
2518
+ toolbarClass: _angular_core.InputSignal<string>;
2519
+ copyButtonClass: _angular_core.InputSignal<string>;
2520
+ editButtonClass: _angular_core.InputSignal<string>;
2521
+ branchNavigationClass: _angular_core.InputSignal<string>;
2522
+ messageRendererComponent: _angular_core.InputSignal<Type<any>>;
2523
+ toolbarComponent: _angular_core.InputSignal<Type<any>>;
2524
+ copyButtonComponent: _angular_core.InputSignal<Type<any>>;
2525
+ editButtonComponent: _angular_core.InputSignal<Type<any>>;
2526
+ branchNavigationComponent: _angular_core.InputSignal<Type<any>>;
2527
+ message: _angular_core.InputSignal<{
2528
+ role: "user";
2529
+ content: string | ({
2530
+ type: "text";
2531
+ text: string;
2532
+ } | {
2533
+ type: "image";
2534
+ source: {
2535
+ type: "data";
2536
+ value: string;
2537
+ mimeType: string;
2538
+ } | {
2539
+ type: "url";
2540
+ value: string;
2541
+ mimeType?: string | undefined;
2542
+ };
2543
+ metadata?: unknown;
2544
+ } | {
2545
+ type: "audio";
2546
+ source: {
2547
+ type: "data";
2548
+ value: string;
2549
+ mimeType: string;
2550
+ } | {
2551
+ type: "url";
2552
+ value: string;
2553
+ mimeType?: string | undefined;
2554
+ };
2555
+ metadata?: unknown;
2556
+ } | {
2557
+ type: "video";
2558
+ source: {
2559
+ type: "data";
2560
+ value: string;
2561
+ mimeType: string;
2562
+ } | {
2563
+ type: "url";
2564
+ value: string;
2565
+ mimeType?: string | undefined;
2566
+ };
2567
+ metadata?: unknown;
2568
+ } | {
2569
+ type: "document";
2570
+ source: {
2571
+ type: "data";
2572
+ value: string;
2573
+ mimeType: string;
2574
+ } | {
2575
+ type: "url";
2576
+ value: string;
2577
+ mimeType?: string | undefined;
2578
+ };
2579
+ metadata?: unknown;
2580
+ } | {
2581
+ type: "binary";
2582
+ mimeType: string;
2583
+ id?: string | undefined;
2584
+ data?: string | undefined;
2585
+ url?: string | undefined;
2586
+ filename?: string | undefined;
2587
+ })[];
2588
+ id: string;
2589
+ name?: string | undefined;
2590
+ encryptedValue?: string | undefined;
2591
+ }>;
2592
+ branchIndex: _angular_core.InputSignal<number>;
2593
+ numberOfBranches: _angular_core.InputSignal<number>;
2594
+ additionalToolbarItems: _angular_core.InputSignal<TemplateRef<any>>;
2595
+ inputClass: _angular_core.InputSignal<string>;
2596
+ editMessage: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnEditMessageProps>;
2597
+ switchToBranch: _angular_core.OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
2598
+ branchIndexValue: _angular_core.Signal<number>;
2599
+ numberOfBranchesValue: _angular_core.Signal<number>;
2600
+ CopilotChatUserMessageRenderer: typeof CopilotChatUserMessageRenderer;
2601
+ CopilotChatUserMessageToolbar: typeof CopilotChatUserMessageToolbar;
2602
+ CopilotChatUserMessageCopyButton: typeof CopilotChatUserMessageCopyButton;
2603
+ CopilotChatUserMessageEditButton: typeof CopilotChatUserMessageEditButton;
2604
+ CopilotChatUserMessageBranchNavigation: typeof CopilotChatUserMessageBranchNavigation;
2605
+ showBranchNavigation: _angular_core.Signal<boolean>;
2606
+ computedClass: _angular_core.Signal<string>;
2607
+ flattenedContent: _angular_core.Signal<string>;
2608
+ mediaParts: _angular_core.Signal<UserMessageMediaPart[]>;
2609
+ messageRendererContext: _angular_core.Signal<MessageRendererContext>;
2610
+ copyButtonOutputs: {
2611
+ clicked: () => void;
2612
+ };
2613
+ editButtonOutputs: {
2614
+ clicked: () => void;
2615
+ };
2616
+ branchNavigationContext: _angular_core.Signal<BranchNavigationContext>;
2617
+ toolbarContext: _angular_core.Signal<UserMessageToolbarContext>;
2618
+ handleCopy(): void;
2619
+ handleEdit(): void;
2620
+ handleSwitchToBranch(props: CopilotChatUserMessageOnSwitchToBranchProps): void;
2621
+ filenameFor(part: UserMessageMediaPart): string | undefined;
2622
+ constructor();
2623
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatUserMessage, never>;
2624
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatUserMessage, "copilot-chat-user-message", never, { "messageRendererClass": { "alias": "messageRendererClass"; "required": false; "isSignal": true; }; "toolbarClass": { "alias": "toolbarClass"; "required": false; "isSignal": true; }; "copyButtonClass": { "alias": "copyButtonClass"; "required": false; "isSignal": true; }; "editButtonClass": { "alias": "editButtonClass"; "required": false; "isSignal": true; }; "branchNavigationClass": { "alias": "branchNavigationClass"; "required": false; "isSignal": true; }; "messageRendererComponent": { "alias": "messageRendererComponent"; "required": false; "isSignal": true; }; "toolbarComponent": { "alias": "toolbarComponent"; "required": false; "isSignal": true; }; "copyButtonComponent": { "alias": "copyButtonComponent"; "required": false; "isSignal": true; }; "editButtonComponent": { "alias": "editButtonComponent"; "required": false; "isSignal": true; }; "branchNavigationComponent": { "alias": "branchNavigationComponent"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "branchIndex": { "alias": "branchIndex"; "required": false; "isSignal": true; }; "numberOfBranches": { "alias": "numberOfBranches"; "required": false; "isSignal": true; }; "additionalToolbarItems": { "alias": "additionalToolbarItems"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "editMessage": "editMessage"; "switchToBranch": "switchToBranch"; }, ["messageRendererTemplate", "toolbarTemplate", "copyButtonTemplate", "editButtonTemplate", "branchNavigationTemplate"], never, true, never>;
2625
+ }
2626
+
2627
+ /**
2628
+ * Cursor component that matches the React implementation exactly.
2629
+ * Shows a pulsing dot animation to indicate activity.
2630
+ */
2631
+ declare class CopilotChatMessageViewCursor {
2632
+ inputClass: _angular_core.InputSignal<string>;
2633
+ computedClass: _angular_core.Signal<string>;
2634
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatMessageViewCursor, never>;
2635
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageViewCursor, "copilot-chat-message-view-cursor", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2636
+ }
2637
+
2638
+ /**
2639
+ * CopilotChatMessageView component - Angular port of the React component.
2640
+ * Renders a list of chat messages with support for custom slots and layouts.
2641
+ * DOM structure and Tailwind classes match the React implementation exactly.
2642
+ */
2643
+ declare class CopilotChatMessageView {
2644
+ messages: _angular_core.InputSignal<({
2645
+ role: "developer";
2646
+ content: string;
2647
+ id: string;
2648
+ name?: string | undefined;
2649
+ encryptedValue?: string | undefined;
2650
+ } | {
2651
+ role: "system";
2652
+ content: string;
2653
+ id: string;
2654
+ name?: string | undefined;
2655
+ encryptedValue?: string | undefined;
2656
+ } | {
2657
+ role: "assistant";
2658
+ id: string;
2659
+ name?: string | undefined;
2660
+ content?: string | undefined;
2661
+ encryptedValue?: string | undefined;
2662
+ toolCalls?: {
2663
+ function: {
2664
+ name: string;
2665
+ arguments: string;
2666
+ };
2667
+ type: "function";
2668
+ id: string;
2669
+ encryptedValue?: string | undefined;
2670
+ }[] | undefined;
2671
+ } | {
2672
+ role: "user";
2673
+ content: string | ({
2674
+ type: "text";
2675
+ text: string;
2676
+ } | {
2677
+ type: "image";
2678
+ source: {
2679
+ type: "data";
2680
+ value: string;
2681
+ mimeType: string;
2682
+ } | {
2683
+ type: "url";
2684
+ value: string;
2685
+ mimeType?: string | undefined;
2686
+ };
2687
+ metadata?: unknown;
2688
+ } | {
2689
+ type: "audio";
2690
+ source: {
2691
+ type: "data";
2692
+ value: string;
2693
+ mimeType: string;
2694
+ } | {
2695
+ type: "url";
2696
+ value: string;
2697
+ mimeType?: string | undefined;
2698
+ };
2699
+ metadata?: unknown;
2700
+ } | {
2701
+ type: "video";
2702
+ source: {
2703
+ type: "data";
2704
+ value: string;
2705
+ mimeType: string;
2706
+ } | {
2707
+ type: "url";
2708
+ value: string;
2709
+ mimeType?: string | undefined;
2710
+ };
2711
+ metadata?: unknown;
2712
+ } | {
2713
+ type: "document";
2714
+ source: {
2715
+ type: "data";
2716
+ value: string;
2717
+ mimeType: string;
2718
+ } | {
2719
+ type: "url";
2720
+ value: string;
2721
+ mimeType?: string | undefined;
2722
+ };
2723
+ metadata?: unknown;
2724
+ } | {
2725
+ type: "binary";
2726
+ mimeType: string;
2727
+ id?: string | undefined;
2728
+ data?: string | undefined;
2729
+ url?: string | undefined;
2730
+ filename?: string | undefined;
2731
+ })[];
2732
+ id: string;
2733
+ name?: string | undefined;
2734
+ encryptedValue?: string | undefined;
2735
+ } | {
2736
+ role: "tool";
2737
+ toolCallId: string;
2738
+ content: string;
2739
+ id: string;
2740
+ encryptedValue?: string | undefined;
2741
+ error?: string | undefined;
2742
+ } | {
2743
+ role: "activity";
2744
+ content: Record<string, any>;
2745
+ id: string;
2746
+ activityType: string;
2747
+ } | {
2748
+ role: "reasoning";
2749
+ content: string;
2750
+ id: string;
2751
+ encryptedValue?: string | undefined;
2752
+ })[]>;
2753
+ showCursor: _angular_core.InputSignal<boolean>;
2754
+ isLoading: _angular_core.InputSignal<boolean>;
2755
+ inputClass: _angular_core.InputSignal<string>;
2756
+ agentId: _angular_core.InputSignal<string>;
2757
+ assistantMessageComponent: _angular_core.InputSignal<Type<any>>;
2758
+ assistantMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
2759
+ assistantMessageClass: _angular_core.InputSignal<string>;
2760
+ userMessageComponent: _angular_core.InputSignal<Type<any>>;
2761
+ userMessageTemplate: _angular_core.InputSignal<TemplateRef<any>>;
2762
+ userMessageClass: _angular_core.InputSignal<string>;
2763
+ cursorComponent: _angular_core.InputSignal<Type<any>>;
2764
+ cursorTemplate: _angular_core.InputSignal<TemplateRef<any>>;
2765
+ cursorClass: _angular_core.InputSignal<string>;
2766
+ customLayoutTemplate?: TemplateRef<any>;
2767
+ assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
2768
+ message: Message;
2769
+ }>;
2770
+ assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
2771
+ message: Message;
2772
+ }>;
2773
+ assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
2774
+ message: Message;
2775
+ }>;
2776
+ assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
2777
+ message: Message;
2778
+ }>;
2779
+ userMessageCopy: _angular_core.OutputEmitterRef<{
2780
+ message: Message;
2781
+ }>;
2782
+ userMessageEdit: _angular_core.OutputEmitterRef<{
2783
+ message: Message;
2784
+ }>;
2785
+ protected readonly defaultAssistantComponent: typeof CopilotChatAssistantMessage;
2786
+ protected readonly defaultUserComponent: typeof CopilotChatUserMessage;
2787
+ protected readonly defaultCursorComponent: typeof CopilotChatMessageViewCursor;
2788
+ protected readonly copilotKit: CopilotKit;
2789
+ protected messagesValue: _angular_core.Signal<({
2790
+ role: "developer";
2791
+ content: string;
2792
+ id: string;
2793
+ name?: string | undefined;
2794
+ encryptedValue?: string | undefined;
2795
+ } | {
2796
+ role: "system";
2797
+ content: string;
2798
+ id: string;
2799
+ name?: string | undefined;
2800
+ encryptedValue?: string | undefined;
2801
+ } | {
2802
+ role: "assistant";
2803
+ id: string;
2804
+ name?: string | undefined;
2805
+ content?: string | undefined;
2806
+ encryptedValue?: string | undefined;
2807
+ toolCalls?: {
2808
+ function: {
2809
+ name: string;
2810
+ arguments: string;
2811
+ };
2812
+ type: "function";
2813
+ id: string;
2814
+ encryptedValue?: string | undefined;
2815
+ }[] | undefined;
2816
+ } | {
2817
+ role: "user";
2818
+ content: string | ({
2819
+ type: "text";
2820
+ text: string;
2821
+ } | {
2822
+ type: "image";
2823
+ source: {
2824
+ type: "data";
2825
+ value: string;
2826
+ mimeType: string;
2827
+ } | {
2828
+ type: "url";
2829
+ value: string;
2830
+ mimeType?: string | undefined;
2831
+ };
2832
+ metadata?: unknown;
2833
+ } | {
2834
+ type: "audio";
2835
+ source: {
2836
+ type: "data";
2837
+ value: string;
2838
+ mimeType: string;
2839
+ } | {
2840
+ type: "url";
2841
+ value: string;
2842
+ mimeType?: string | undefined;
2843
+ };
2844
+ metadata?: unknown;
2845
+ } | {
2846
+ type: "video";
2847
+ source: {
2848
+ type: "data";
2849
+ value: string;
2850
+ mimeType: string;
2851
+ } | {
2852
+ type: "url";
2853
+ value: string;
2854
+ mimeType?: string | undefined;
2855
+ };
2856
+ metadata?: unknown;
2857
+ } | {
2858
+ type: "document";
2859
+ source: {
2860
+ type: "data";
2861
+ value: string;
2862
+ mimeType: string;
2863
+ } | {
2864
+ type: "url";
2865
+ value: string;
2866
+ mimeType?: string | undefined;
2867
+ };
2868
+ metadata?: unknown;
2869
+ } | {
2870
+ type: "binary";
2871
+ mimeType: string;
2872
+ id?: string | undefined;
2873
+ data?: string | undefined;
2874
+ url?: string | undefined;
2875
+ filename?: string | undefined;
2876
+ })[];
2877
+ id: string;
2878
+ name?: string | undefined;
2879
+ encryptedValue?: string | undefined;
2880
+ } | {
2881
+ role: "tool";
2882
+ toolCallId: string;
2883
+ content: string;
2884
+ id: string;
2885
+ encryptedValue?: string | undefined;
2886
+ error?: string | undefined;
2887
+ } | {
2888
+ role: "activity";
2889
+ content: Record<string, any>;
2890
+ id: string;
2891
+ activityType: string;
2892
+ } | {
2893
+ role: "reasoning";
2894
+ content: string;
2895
+ id: string;
2896
+ encryptedValue?: string | undefined;
2897
+ })[]>;
2898
+ protected showCursorValue: _angular_core.Signal<boolean>;
2899
+ protected isLoadingValue: _angular_core.Signal<boolean>;
2900
+ protected lastMessage: _angular_core.Signal<{
2901
+ role: "developer";
2902
+ content: string;
2903
+ id: string;
2904
+ name?: string | undefined;
2905
+ encryptedValue?: string | undefined;
2906
+ } | {
2907
+ role: "system";
2908
+ content: string;
2909
+ id: string;
2910
+ name?: string | undefined;
2911
+ encryptedValue?: string | undefined;
2912
+ } | {
2913
+ role: "assistant";
2914
+ id: string;
2915
+ name?: string | undefined;
2916
+ content?: string | undefined;
2917
+ encryptedValue?: string | undefined;
2918
+ toolCalls?: {
2919
+ function: {
2920
+ name: string;
2921
+ arguments: string;
2922
+ };
2923
+ type: "function";
2924
+ id: string;
2925
+ encryptedValue?: string | undefined;
2926
+ }[] | undefined;
2927
+ } | {
2928
+ role: "user";
2929
+ content: string | ({
2930
+ type: "text";
2931
+ text: string;
2932
+ } | {
2933
+ type: "image";
2934
+ source: {
2935
+ type: "data";
2936
+ value: string;
2937
+ mimeType: string;
2938
+ } | {
2939
+ type: "url";
2940
+ value: string;
2941
+ mimeType?: string | undefined;
2942
+ };
2943
+ metadata?: unknown;
2944
+ } | {
2945
+ type: "audio";
2946
+ source: {
2947
+ type: "data";
2948
+ value: string;
2949
+ mimeType: string;
2950
+ } | {
2951
+ type: "url";
2952
+ value: string;
2953
+ mimeType?: string | undefined;
2954
+ };
2955
+ metadata?: unknown;
2956
+ } | {
2957
+ type: "video";
2958
+ source: {
2959
+ type: "data";
2960
+ value: string;
2961
+ mimeType: string;
2962
+ } | {
2963
+ type: "url";
2964
+ value: string;
2965
+ mimeType?: string | undefined;
2966
+ };
2967
+ metadata?: unknown;
2968
+ } | {
2969
+ type: "document";
2970
+ source: {
2971
+ type: "data";
2972
+ value: string;
2973
+ mimeType: string;
2974
+ } | {
2975
+ type: "url";
2976
+ value: string;
2977
+ mimeType?: string | undefined;
2978
+ };
2979
+ metadata?: unknown;
2980
+ } | {
2981
+ type: "binary";
2982
+ mimeType: string;
2983
+ id?: string | undefined;
2984
+ data?: string | undefined;
2985
+ url?: string | undefined;
2986
+ filename?: string | undefined;
2987
+ })[];
2988
+ id: string;
2989
+ name?: string | undefined;
2990
+ encryptedValue?: string | undefined;
2991
+ } | {
2992
+ role: "tool";
2993
+ toolCallId: string;
2994
+ content: string;
2995
+ id: string;
2996
+ encryptedValue?: string | undefined;
2997
+ error?: string | undefined;
2998
+ } | {
2999
+ role: "activity";
3000
+ content: Record<string, any>;
3001
+ id: string;
3002
+ activityType: string;
3003
+ } | {
3004
+ role: "reasoning";
3005
+ content: string;
3006
+ id: string;
3007
+ encryptedValue?: string | undefined;
3008
+ }>;
3009
+ computedClass: _angular_core.Signal<string>;
3010
+ layoutContext: _angular_core.Signal<{
3011
+ isLoading: boolean;
3012
+ messages: ({
3013
+ role: "developer";
3014
+ content: string;
3015
+ id: string;
3016
+ name?: string | undefined;
3017
+ encryptedValue?: string | undefined;
3018
+ } | {
3019
+ role: "system";
3020
+ content: string;
3021
+ id: string;
3022
+ name?: string | undefined;
3023
+ encryptedValue?: string | undefined;
3024
+ } | {
3025
+ role: "assistant";
3026
+ id: string;
3027
+ name?: string | undefined;
3028
+ content?: string | undefined;
3029
+ encryptedValue?: string | undefined;
3030
+ toolCalls?: {
3031
+ function: {
3032
+ name: string;
3033
+ arguments: string;
3034
+ };
3035
+ type: "function";
3036
+ id: string;
3037
+ encryptedValue?: string | undefined;
3038
+ }[] | undefined;
3039
+ } | {
3040
+ role: "user";
3041
+ content: string | ({
3042
+ type: "text";
3043
+ text: string;
3044
+ } | {
3045
+ type: "image";
3046
+ source: {
3047
+ type: "data";
3048
+ value: string;
3049
+ mimeType: string;
3050
+ } | {
3051
+ type: "url";
3052
+ value: string;
3053
+ mimeType?: string | undefined;
3054
+ };
3055
+ metadata?: unknown;
3056
+ } | {
3057
+ type: "audio";
3058
+ source: {
3059
+ type: "data";
3060
+ value: string;
3061
+ mimeType: string;
3062
+ } | {
3063
+ type: "url";
3064
+ value: string;
3065
+ mimeType?: string | undefined;
3066
+ };
3067
+ metadata?: unknown;
3068
+ } | {
3069
+ type: "video";
3070
+ source: {
3071
+ type: "data";
3072
+ value: string;
3073
+ mimeType: string;
3074
+ } | {
3075
+ type: "url";
3076
+ value: string;
3077
+ mimeType?: string | undefined;
3078
+ };
3079
+ metadata?: unknown;
3080
+ } | {
3081
+ type: "document";
3082
+ source: {
3083
+ type: "data";
3084
+ value: string;
3085
+ mimeType: string;
3086
+ } | {
3087
+ type: "url";
3088
+ value: string;
3089
+ mimeType?: string | undefined;
3090
+ };
3091
+ metadata?: unknown;
3092
+ } | {
3093
+ type: "binary";
3094
+ mimeType: string;
3095
+ id?: string | undefined;
3096
+ data?: string | undefined;
3097
+ url?: string | undefined;
3098
+ filename?: string | undefined;
3099
+ })[];
3100
+ id: string;
3101
+ name?: string | undefined;
3102
+ encryptedValue?: string | undefined;
3103
+ } | {
3104
+ role: "tool";
3105
+ toolCallId: string;
3106
+ content: string;
3107
+ id: string;
3108
+ encryptedValue?: string | undefined;
3109
+ error?: string | undefined;
3110
+ } | {
3111
+ role: "activity";
3112
+ content: Record<string, any>;
3113
+ id: string;
3114
+ activityType: string;
3115
+ } | {
3116
+ role: "reasoning";
3117
+ content: string;
3118
+ id: string;
3119
+ encryptedValue?: string | undefined;
3120
+ })[];
3121
+ showCursor: boolean;
3122
+ messageElements: ({
3123
+ role: "developer";
3124
+ content: string;
3125
+ id: string;
3126
+ name?: string | undefined;
3127
+ encryptedValue?: string | undefined;
3128
+ } | {
3129
+ role: "system";
3130
+ content: string;
3131
+ id: string;
3132
+ name?: string | undefined;
3133
+ encryptedValue?: string | undefined;
3134
+ } | {
3135
+ role: "assistant";
3136
+ id: string;
3137
+ name?: string | undefined;
3138
+ content?: string | undefined;
3139
+ encryptedValue?: string | undefined;
3140
+ toolCalls?: {
3141
+ function: {
3142
+ name: string;
3143
+ arguments: string;
3144
+ };
3145
+ type: "function";
3146
+ id: string;
3147
+ encryptedValue?: string | undefined;
3148
+ }[] | undefined;
3149
+ } | {
3150
+ role: "user";
3151
+ content: string | ({
3152
+ type: "text";
3153
+ text: string;
3154
+ } | {
3155
+ type: "image";
3156
+ source: {
3157
+ type: "data";
3158
+ value: string;
3159
+ mimeType: string;
3160
+ } | {
3161
+ type: "url";
3162
+ value: string;
3163
+ mimeType?: string | undefined;
3164
+ };
3165
+ metadata?: unknown;
3166
+ } | {
3167
+ type: "audio";
3168
+ source: {
3169
+ type: "data";
3170
+ value: string;
3171
+ mimeType: string;
3172
+ } | {
3173
+ type: "url";
3174
+ value: string;
3175
+ mimeType?: string | undefined;
3176
+ };
3177
+ metadata?: unknown;
3178
+ } | {
3179
+ type: "video";
3180
+ source: {
3181
+ type: "data";
3182
+ value: string;
3183
+ mimeType: string;
3184
+ } | {
3185
+ type: "url";
3186
+ value: string;
3187
+ mimeType?: string | undefined;
3188
+ };
3189
+ metadata?: unknown;
3190
+ } | {
3191
+ type: "document";
3192
+ source: {
3193
+ type: "data";
3194
+ value: string;
3195
+ mimeType: string;
3196
+ } | {
3197
+ type: "url";
3198
+ value: string;
3199
+ mimeType?: string | undefined;
3200
+ };
3201
+ metadata?: unknown;
3202
+ } | {
3203
+ type: "binary";
3204
+ mimeType: string;
3205
+ id?: string | undefined;
3206
+ data?: string | undefined;
3207
+ url?: string | undefined;
3208
+ filename?: string | undefined;
3209
+ })[];
3210
+ id: string;
3211
+ name?: string | undefined;
3212
+ encryptedValue?: string | undefined;
3213
+ } | {
3214
+ role: "tool";
3215
+ toolCallId: string;
3216
+ content: string;
3217
+ id: string;
3218
+ encryptedValue?: string | undefined;
3219
+ error?: string | undefined;
3220
+ } | {
3221
+ role: "activity";
3222
+ content: Record<string, any>;
3223
+ id: string;
3224
+ activityType: string;
3225
+ } | {
3226
+ role: "reasoning";
3227
+ content: string;
3228
+ id: string;
3229
+ encryptedValue?: string | undefined;
3230
+ })[];
3231
+ }>;
3232
+ assistantMessageSlot: _angular_core.Signal<string | Type<any>>;
3233
+ userMessageSlot: _angular_core.Signal<string | Type<any>>;
3234
+ cursorSlot: _angular_core.Signal<string | Type<any>>;
3235
+ mergeAssistantProps(message: Message): {
3236
+ message: {
3237
+ role: "developer";
3238
+ content: string;
3239
+ id: string;
3240
+ name?: string | undefined;
3241
+ encryptedValue?: string | undefined;
3242
+ } | {
3243
+ role: "system";
3244
+ content: string;
3245
+ id: string;
3246
+ name?: string | undefined;
3247
+ encryptedValue?: string | undefined;
3248
+ } | {
3249
+ role: "assistant";
3250
+ id: string;
3251
+ name?: string | undefined;
3252
+ content?: string | undefined;
3253
+ encryptedValue?: string | undefined;
3254
+ toolCalls?: {
3255
+ function: {
3256
+ name: string;
3257
+ arguments: string;
3258
+ };
3259
+ type: "function";
3260
+ id: string;
3261
+ encryptedValue?: string | undefined;
3262
+ }[] | undefined;
3263
+ } | {
3264
+ role: "user";
3265
+ content: string | ({
3266
+ type: "text";
3267
+ text: string;
3268
+ } | {
3269
+ type: "image";
3270
+ source: {
3271
+ type: "data";
3272
+ value: string;
3273
+ mimeType: string;
3274
+ } | {
3275
+ type: "url";
3276
+ value: string;
3277
+ mimeType?: string | undefined;
3278
+ };
3279
+ metadata?: unknown;
3280
+ } | {
3281
+ type: "audio";
3282
+ source: {
3283
+ type: "data";
3284
+ value: string;
3285
+ mimeType: string;
3286
+ } | {
3287
+ type: "url";
3288
+ value: string;
3289
+ mimeType?: string | undefined;
3290
+ };
3291
+ metadata?: unknown;
3292
+ } | {
3293
+ type: "video";
3294
+ source: {
3295
+ type: "data";
3296
+ value: string;
3297
+ mimeType: string;
3298
+ } | {
3299
+ type: "url";
3300
+ value: string;
3301
+ mimeType?: string | undefined;
3302
+ };
3303
+ metadata?: unknown;
3304
+ } | {
3305
+ type: "document";
3306
+ source: {
3307
+ type: "data";
3308
+ value: string;
3309
+ mimeType: string;
3310
+ } | {
3311
+ type: "url";
3312
+ value: string;
3313
+ mimeType?: string | undefined;
3314
+ };
3315
+ metadata?: unknown;
3316
+ } | {
3317
+ type: "binary";
3318
+ mimeType: string;
3319
+ id?: string | undefined;
3320
+ data?: string | undefined;
3321
+ url?: string | undefined;
3322
+ filename?: string | undefined;
3323
+ })[];
3324
+ id: string;
3325
+ name?: string | undefined;
3326
+ encryptedValue?: string | undefined;
3327
+ } | {
3328
+ role: "tool";
3329
+ toolCallId: string;
3330
+ content: string;
3331
+ id: string;
3332
+ encryptedValue?: string | undefined;
3333
+ error?: string | undefined;
3334
+ } | {
3335
+ role: "activity";
3336
+ content: Record<string, any>;
3337
+ id: string;
3338
+ activityType: string;
3339
+ } | {
3340
+ role: "reasoning";
3341
+ content: string;
3342
+ id: string;
3343
+ encryptedValue?: string | undefined;
3344
+ };
3345
+ messages: ({
3346
+ role: "developer";
3347
+ content: string;
3348
+ id: string;
3349
+ name?: string | undefined;
3350
+ encryptedValue?: string | undefined;
3351
+ } | {
3352
+ role: "system";
3353
+ content: string;
3354
+ id: string;
3355
+ name?: string | undefined;
3356
+ encryptedValue?: string | undefined;
3357
+ } | {
3358
+ role: "assistant";
3359
+ id: string;
3360
+ name?: string | undefined;
3361
+ content?: string | undefined;
3362
+ encryptedValue?: string | undefined;
3363
+ toolCalls?: {
3364
+ function: {
3365
+ name: string;
3366
+ arguments: string;
3367
+ };
3368
+ type: "function";
3369
+ id: string;
3370
+ encryptedValue?: string | undefined;
3371
+ }[] | undefined;
3372
+ } | {
3373
+ role: "user";
3374
+ content: string | ({
3375
+ type: "text";
3376
+ text: string;
3377
+ } | {
3378
+ type: "image";
3379
+ source: {
3380
+ type: "data";
3381
+ value: string;
3382
+ mimeType: string;
3383
+ } | {
3384
+ type: "url";
3385
+ value: string;
3386
+ mimeType?: string | undefined;
3387
+ };
3388
+ metadata?: unknown;
3389
+ } | {
3390
+ type: "audio";
3391
+ source: {
3392
+ type: "data";
3393
+ value: string;
3394
+ mimeType: string;
3395
+ } | {
3396
+ type: "url";
3397
+ value: string;
3398
+ mimeType?: string | undefined;
3399
+ };
3400
+ metadata?: unknown;
3401
+ } | {
3402
+ type: "video";
3403
+ source: {
3404
+ type: "data";
3405
+ value: string;
3406
+ mimeType: string;
3407
+ } | {
3408
+ type: "url";
3409
+ value: string;
3410
+ mimeType?: string | undefined;
3411
+ };
3412
+ metadata?: unknown;
3413
+ } | {
3414
+ type: "document";
3415
+ source: {
3416
+ type: "data";
3417
+ value: string;
3418
+ mimeType: string;
3419
+ } | {
3420
+ type: "url";
3421
+ value: string;
3422
+ mimeType?: string | undefined;
3423
+ };
3424
+ metadata?: unknown;
3425
+ } | {
3426
+ type: "binary";
3427
+ mimeType: string;
3428
+ id?: string | undefined;
3429
+ data?: string | undefined;
3430
+ url?: string | undefined;
3431
+ filename?: string | undefined;
3432
+ })[];
3433
+ id: string;
3434
+ name?: string | undefined;
3435
+ encryptedValue?: string | undefined;
3436
+ } | {
3437
+ role: "tool";
3438
+ toolCallId: string;
3439
+ content: string;
3440
+ id: string;
3441
+ encryptedValue?: string | undefined;
3442
+ error?: string | undefined;
3443
+ } | {
3444
+ role: "activity";
3445
+ content: Record<string, any>;
3446
+ id: string;
3447
+ activityType: string;
3448
+ } | {
3449
+ role: "reasoning";
3450
+ content: string;
3451
+ id: string;
3452
+ encryptedValue?: string | undefined;
3453
+ })[];
3454
+ isLoading: boolean;
3455
+ inputClass: string;
3456
+ };
3457
+ mergeUserProps(message: Message): {
3458
+ message: {
3459
+ role: "developer";
3460
+ content: string;
3461
+ id: string;
3462
+ name?: string | undefined;
3463
+ encryptedValue?: string | undefined;
3464
+ } | {
3465
+ role: "system";
3466
+ content: string;
3467
+ id: string;
3468
+ name?: string | undefined;
3469
+ encryptedValue?: string | undefined;
3470
+ } | {
3471
+ role: "assistant";
3472
+ id: string;
3473
+ name?: string | undefined;
3474
+ content?: string | undefined;
3475
+ encryptedValue?: string | undefined;
3476
+ toolCalls?: {
3477
+ function: {
3478
+ name: string;
3479
+ arguments: string;
3480
+ };
3481
+ type: "function";
3482
+ id: string;
3483
+ encryptedValue?: string | undefined;
3484
+ }[] | undefined;
3485
+ } | {
3486
+ role: "user";
3487
+ content: string | ({
3488
+ type: "text";
3489
+ text: string;
3490
+ } | {
3491
+ type: "image";
3492
+ source: {
3493
+ type: "data";
3494
+ value: string;
3495
+ mimeType: string;
3496
+ } | {
3497
+ type: "url";
3498
+ value: string;
3499
+ mimeType?: string | undefined;
3500
+ };
3501
+ metadata?: unknown;
3502
+ } | {
3503
+ type: "audio";
3504
+ source: {
3505
+ type: "data";
3506
+ value: string;
3507
+ mimeType: string;
3508
+ } | {
3509
+ type: "url";
3510
+ value: string;
3511
+ mimeType?: string | undefined;
3512
+ };
3513
+ metadata?: unknown;
3514
+ } | {
3515
+ type: "video";
3516
+ source: {
3517
+ type: "data";
3518
+ value: string;
3519
+ mimeType: string;
3520
+ } | {
3521
+ type: "url";
3522
+ value: string;
3523
+ mimeType?: string | undefined;
3524
+ };
3525
+ metadata?: unknown;
3526
+ } | {
3527
+ type: "document";
3528
+ source: {
3529
+ type: "data";
3530
+ value: string;
3531
+ mimeType: string;
3532
+ } | {
3533
+ type: "url";
3534
+ value: string;
3535
+ mimeType?: string | undefined;
3536
+ };
3537
+ metadata?: unknown;
3538
+ } | {
3539
+ type: "binary";
3540
+ mimeType: string;
3541
+ id?: string | undefined;
3542
+ data?: string | undefined;
3543
+ url?: string | undefined;
3544
+ filename?: string | undefined;
3545
+ })[];
3546
+ id: string;
3547
+ name?: string | undefined;
3548
+ encryptedValue?: string | undefined;
3549
+ } | {
3550
+ role: "tool";
3551
+ toolCallId: string;
3552
+ content: string;
3553
+ id: string;
3554
+ encryptedValue?: string | undefined;
3555
+ error?: string | undefined;
3556
+ } | {
3557
+ role: "activity";
3558
+ content: Record<string, any>;
3559
+ id: string;
3560
+ activityType: string;
3561
+ } | {
3562
+ role: "reasoning";
3563
+ content: string;
3564
+ id: string;
3565
+ encryptedValue?: string | undefined;
3566
+ };
3567
+ inputClass: string;
3568
+ };
3569
+ asReasoningMessage(message: Message): ReasoningMessage;
3570
+ trackByMessageId(index: number, message: Message): string;
3571
+ private pickActivityRenderer;
3572
+ protected resolveActivityRender(message: ActivityMessage$1): {
3573
+ component: Type<_copilotkit_angular.ActivityRenderer<unknown>>;
3574
+ inputs: {
3575
+ activityType: string;
3576
+ content: unknown;
3577
+ message: {
3578
+ role: "activity";
3579
+ content: Record<string, any>;
3580
+ id: string;
3581
+ activityType: string;
3582
+ };
3583
+ agent: _ag_ui_client.AbstractAgent;
3584
+ };
3585
+ };
3586
+ constructor();
3587
+ handleAssistantThumbsUp(event: {
3588
+ message: Message;
3589
+ }): void;
3590
+ handleAssistantThumbsDown(event: {
3591
+ message: Message;
3592
+ }): void;
3593
+ handleAssistantReadAloud(event: {
3594
+ message: Message;
3595
+ }): void;
3596
+ handleAssistantRegenerate(event: {
3597
+ message: Message;
3598
+ }): void;
3599
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatMessageView, never>;
3600
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatMessageView, "copilot-chat-message-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "assistantMessageComponent": { "alias": "assistantMessageComponent"; "required": false; "isSignal": true; }; "assistantMessageTemplate": { "alias": "assistantMessageTemplate"; "required": false; "isSignal": true; }; "assistantMessageClass": { "alias": "assistantMessageClass"; "required": false; "isSignal": true; }; "userMessageComponent": { "alias": "userMessageComponent"; "required": false; "isSignal": true; }; "userMessageTemplate": { "alias": "userMessageTemplate"; "required": false; "isSignal": true; }; "userMessageClass": { "alias": "userMessageClass"; "required": false; "isSignal": true; }; "cursorComponent": { "alias": "cursorComponent"; "required": false; "isSignal": true; }; "cursorTemplate": { "alias": "cursorTemplate"; "required": false; "isSignal": true; }; "cursorClass": { "alias": "cursorClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate"], never, true, never>;
3601
+ }
3602
+
3603
+ interface MessageViewContext {
3604
+ showCursor: boolean;
3605
+ messages: Message$1[];
3606
+ messageElements: any[];
3607
+ }
3608
+ interface CursorContext {
3609
+ }
3610
+ interface CopilotChatMessageViewProps {
3611
+ messages?: Message$1[];
3612
+ showCursor?: boolean;
3613
+ inputClass?: string;
3614
+ assistantMessageComponent?: Type<any>;
3615
+ assistantMessageTemplate?: TemplateRef<any>;
3616
+ assistantMessageClass?: string;
3617
+ userMessageComponent?: Type<any>;
3618
+ userMessageTemplate?: TemplateRef<any>;
3619
+ userMessageClass?: string;
3620
+ cursorComponent?: Type<any>;
3621
+ cursorTemplate?: TemplateRef<any>;
3622
+ cursorClass?: string;
3623
+ }
3624
+
3625
+ declare class CopilotChatReasoningMessage {
3626
+ readonly message: _angular_core.InputSignal<{
3627
+ role: "reasoning";
3628
+ content: string;
3629
+ id: string;
3630
+ encryptedValue?: string | undefined;
3631
+ }>;
3632
+ readonly messages: _angular_core.InputSignal<({
3633
+ role: "developer";
3634
+ content: string;
3635
+ id: string;
3636
+ name?: string | undefined;
3637
+ encryptedValue?: string | undefined;
3638
+ } | {
3639
+ role: "system";
3640
+ content: string;
3641
+ id: string;
3642
+ name?: string | undefined;
3643
+ encryptedValue?: string | undefined;
3644
+ } | {
3645
+ role: "assistant";
3646
+ id: string;
3647
+ name?: string | undefined;
3648
+ content?: string | undefined;
3649
+ encryptedValue?: string | undefined;
3650
+ toolCalls?: {
3651
+ function: {
3652
+ name: string;
3653
+ arguments: string;
3654
+ };
3655
+ type: "function";
3656
+ id: string;
3657
+ encryptedValue?: string | undefined;
3658
+ }[] | undefined;
3659
+ } | {
3660
+ role: "user";
3661
+ content: string | ({
3662
+ type: "text";
3663
+ text: string;
3664
+ } | {
3665
+ type: "image";
3666
+ source: {
3667
+ type: "data";
3668
+ value: string;
3669
+ mimeType: string;
3670
+ } | {
3671
+ type: "url";
3672
+ value: string;
3673
+ mimeType?: string | undefined;
3674
+ };
3675
+ metadata?: unknown;
3676
+ } | {
3677
+ type: "audio";
3678
+ source: {
3679
+ type: "data";
3680
+ value: string;
3681
+ mimeType: string;
3682
+ } | {
3683
+ type: "url";
3684
+ value: string;
3685
+ mimeType?: string | undefined;
3686
+ };
3687
+ metadata?: unknown;
3688
+ } | {
3689
+ type: "video";
3690
+ source: {
3691
+ type: "data";
3692
+ value: string;
3693
+ mimeType: string;
3694
+ } | {
3695
+ type: "url";
3696
+ value: string;
3697
+ mimeType?: string | undefined;
3698
+ };
3699
+ metadata?: unknown;
3700
+ } | {
3701
+ type: "document";
3702
+ source: {
3703
+ type: "data";
3704
+ value: string;
3705
+ mimeType: string;
3706
+ } | {
3707
+ type: "url";
3708
+ value: string;
3709
+ mimeType?: string | undefined;
3710
+ };
3711
+ metadata?: unknown;
3712
+ } | {
3713
+ type: "binary";
3714
+ mimeType: string;
3715
+ id?: string | undefined;
3716
+ data?: string | undefined;
3717
+ url?: string | undefined;
3718
+ filename?: string | undefined;
3719
+ })[];
3720
+ id: string;
3721
+ name?: string | undefined;
3722
+ encryptedValue?: string | undefined;
3723
+ } | {
3724
+ role: "tool";
3725
+ toolCallId: string;
3726
+ content: string;
3727
+ id: string;
3728
+ encryptedValue?: string | undefined;
3729
+ error?: string | undefined;
3730
+ } | {
3731
+ role: "activity";
3732
+ content: Record<string, any>;
3733
+ id: string;
3734
+ activityType: string;
3735
+ } | {
3736
+ role: "reasoning";
3737
+ content: string;
3738
+ id: string;
3739
+ encryptedValue?: string | undefined;
3740
+ })[]>;
3741
+ readonly isRunning: _angular_core.InputSignal<boolean>;
3742
+ readonly inputClass: _angular_core.InputSignal<string>;
3743
+ private readonly userToggled;
3744
+ protected readonly isLatest: _angular_core.Signal<boolean>;
3745
+ protected readonly isStreaming: _angular_core.Signal<boolean>;
3746
+ private readonly startTime;
3747
+ protected readonly open: _angular_core.WritableSignal<boolean>;
3748
+ protected readonly hasContent: _angular_core.Signal<boolean>;
3749
+ protected readonly reasoningContent: _angular_core.Signal<string>;
3750
+ protected readonly label: _angular_core.Signal<string>;
3751
+ protected readonly computedClass: _angular_core.Signal<string>;
3752
+ protected readonly headerClass: _angular_core.Signal<string>;
3753
+ protected readonly chevronClass: _angular_core.Signal<string>;
3754
+ protected toggle(): void;
3755
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatReasoningMessage, never>;
3756
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatReasoningMessage, "copilot-chat-reasoning-message", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "isRunning": { "alias": "isRunning"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3757
+ }
3758
+
3759
+ declare class CopilotChatSuggestionPill {
3760
+ readonly title: _angular_core.InputSignal<string>;
3761
+ readonly disabled: _angular_core.InputSignal<boolean>;
3762
+ readonly isLoading: _angular_core.InputSignal<boolean>;
3763
+ readonly inputClass: _angular_core.InputSignal<string>;
3764
+ readonly clicked: _angular_core.OutputEmitterRef<void>;
3765
+ protected readonly computedClass: _angular_core.Signal<string>;
3766
+ handleClick(): void;
3767
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatSuggestionPill, never>;
3768
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatSuggestionPill, "copilot-chat-suggestion-pill", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
3769
+ }
3770
+
3771
+ declare class CopilotChatSuggestionView {
3772
+ readonly suggestions: _angular_core.InputSignal<Suggestion[]>;
3773
+ readonly inputClass: _angular_core.InputSignal<string>;
3774
+ readonly selectSuggestion: _angular_core.OutputEmitterRef<{
3775
+ suggestion: Suggestion;
3776
+ index: number;
3777
+ }>;
3778
+ protected readonly computedClass: _angular_core.Signal<string>;
3779
+ handleSelect(suggestion: Suggestion, index: number): void;
3780
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatSuggestionView, never>;
3781
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatSuggestionView, "copilot-chat-suggestion-view", never, { "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; }, { "selectSuggestion": "selectSuggestion"; }, never, never, true, never>;
3782
+ }
3783
+
3784
+ /**
3785
+ * ScrollToBottomButton component for CopilotChatView
3786
+ * Matches React implementation exactly with same Tailwind classes
3787
+ */
3788
+ declare class CopilotChatViewScrollToBottomButton {
3789
+ inputClass: _angular_core.InputSignal<string>;
3790
+ disabled: _angular_core.InputSignal<boolean>;
3791
+ onClick: _angular_core.InputSignal<() => void>;
3792
+ clicked: _angular_core.OutputEmitterRef<void>;
3793
+ protected readonly ChevronDown: lucide_angular.LucideIconData;
3794
+ get computedClass(): string;
3795
+ handleClick(): void;
3796
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewScrollToBottomButton, never>;
3797
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewScrollToBottomButton, "copilot-chat-view-scroll-to-bottom-button", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "onClick": { "alias": "onClick"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
3798
+ }
3799
+
3800
+ /**
3801
+ * ScrollView component for CopilotChatView
3802
+ * Handles auto-scrolling and scroll position management
3803
+ */
3804
+ declare class CopilotChatViewScrollView implements OnInit, AfterViewInit, OnDestroy {
3805
+ private cdr;
3806
+ protected readonly chatState: ChatState;
3807
+ autoScroll: _angular_core.InputSignal<boolean>;
3808
+ inputContainerHeight: _angular_core.InputSignal<number>;
3809
+ isResizing: _angular_core.InputSignal<boolean>;
3810
+ inputClass: _angular_core.InputSignal<string>;
3811
+ messages: _angular_core.InputSignal<({
3812
+ role: "developer";
3813
+ content: string;
3814
+ id: string;
3815
+ name?: string | undefined;
3816
+ encryptedValue?: string | undefined;
3817
+ } | {
3818
+ role: "system";
3819
+ content: string;
3820
+ id: string;
3821
+ name?: string | undefined;
3822
+ encryptedValue?: string | undefined;
3823
+ } | {
3824
+ role: "assistant";
3825
+ id: string;
3826
+ name?: string | undefined;
3827
+ content?: string | undefined;
3828
+ encryptedValue?: string | undefined;
3829
+ toolCalls?: {
3830
+ function: {
3831
+ name: string;
3832
+ arguments: string;
3833
+ };
3834
+ type: "function";
3835
+ id: string;
3836
+ encryptedValue?: string | undefined;
3837
+ }[] | undefined;
3838
+ } | {
3839
+ role: "user";
3840
+ content: string | ({
3841
+ type: "text";
3842
+ text: string;
3843
+ } | {
3844
+ type: "image";
3845
+ source: {
3846
+ type: "data";
3847
+ value: string;
3848
+ mimeType: string;
3849
+ } | {
3850
+ type: "url";
3851
+ value: string;
3852
+ mimeType?: string | undefined;
3853
+ };
3854
+ metadata?: unknown;
3855
+ } | {
3856
+ type: "audio";
3857
+ source: {
3858
+ type: "data";
3859
+ value: string;
3860
+ mimeType: string;
3861
+ } | {
3862
+ type: "url";
3863
+ value: string;
3864
+ mimeType?: string | undefined;
3865
+ };
3866
+ metadata?: unknown;
3867
+ } | {
3868
+ type: "video";
3869
+ source: {
3870
+ type: "data";
3871
+ value: string;
3872
+ mimeType: string;
3873
+ } | {
3874
+ type: "url";
3875
+ value: string;
3876
+ mimeType?: string | undefined;
3877
+ };
3878
+ metadata?: unknown;
3879
+ } | {
3880
+ type: "document";
3881
+ source: {
3882
+ type: "data";
3883
+ value: string;
3884
+ mimeType: string;
3885
+ } | {
3886
+ type: "url";
3887
+ value: string;
3888
+ mimeType?: string | undefined;
3889
+ };
3890
+ metadata?: unknown;
3891
+ } | {
3892
+ type: "binary";
3893
+ mimeType: string;
3894
+ id?: string | undefined;
3895
+ data?: string | undefined;
3896
+ url?: string | undefined;
3897
+ filename?: string | undefined;
3898
+ })[];
3899
+ id: string;
3900
+ name?: string | undefined;
3901
+ encryptedValue?: string | undefined;
3902
+ } | {
3903
+ role: "tool";
3904
+ toolCallId: string;
3905
+ content: string;
3906
+ id: string;
3907
+ encryptedValue?: string | undefined;
3908
+ error?: string | undefined;
3909
+ } | {
3910
+ role: "activity";
3911
+ content: Record<string, any>;
3912
+ id: string;
3913
+ activityType: string;
3914
+ } | {
3915
+ role: "reasoning";
3916
+ content: string;
3917
+ id: string;
3918
+ encryptedValue?: string | undefined;
3919
+ })[]>;
3920
+ agentId: _angular_core.InputSignal<string>;
3921
+ messageView: _angular_core.InputSignal<any>;
3922
+ messageViewClass: _angular_core.InputSignal<string>;
3923
+ showCursor: _angular_core.InputSignal<boolean>;
3924
+ scrollToBottomButton: _angular_core.InputSignal<any>;
3925
+ scrollToBottomButtonClass: _angular_core.InputSignal<string>;
3926
+ assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
3927
+ message: Message$1;
3928
+ }>;
3929
+ assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
3930
+ message: Message$1;
3931
+ }>;
3932
+ assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
3933
+ message: Message$1;
3934
+ }>;
3935
+ assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
3936
+ message: Message$1;
3937
+ }>;
3938
+ userMessageCopy: _angular_core.OutputEmitterRef<{
3939
+ message: Message$1;
3940
+ }>;
3941
+ userMessageEdit: _angular_core.OutputEmitterRef<{
3942
+ message: Message$1;
3943
+ }>;
3944
+ scrollContainer?: ElementRef<HTMLElement>;
3945
+ contentContainer?: ElementRef<HTMLElement>;
3946
+ stickToBottomDirective?: StickToBottom;
3947
+ protected readonly defaultMessageViewComponent: typeof CopilotChatMessageView;
3948
+ protected readonly defaultScrollToBottomButtonComponent: typeof CopilotChatViewScrollToBottomButton;
3949
+ protected hasMounted: _angular_core.WritableSignal<boolean>;
3950
+ protected showScrollButton: _angular_core.WritableSignal<boolean>;
3951
+ protected isAtBottom: _angular_core.WritableSignal<boolean>;
3952
+ protected hasSuggestions: _angular_core.Signal<boolean>;
3953
+ protected paddingBottom: _angular_core.Signal<number>;
3954
+ protected computedClass: _angular_core.Signal<string>;
3955
+ private destroy$;
3956
+ private platformId;
3957
+ private scrollPositionService;
3958
+ ngOnInit(): void;
3959
+ ngAfterViewInit(): void;
3960
+ /**
3961
+ * Handle isAtBottom change from StickToBottom directive
3962
+ */
3963
+ onIsAtBottomChange(isAtBottom: boolean): void;
3964
+ /**
3965
+ * Scroll to bottom for manual mode
3966
+ */
3967
+ scrollToBottom(): void;
3968
+ /**
3969
+ * Scroll to bottom for stick-to-bottom mode
3970
+ */
3971
+ scrollToBottomFromStick(): void;
3972
+ ngOnDestroy(): void;
3973
+ scrollToBottomOutputs: {
3974
+ clicked: () => void;
3975
+ };
3976
+ scrollToBottomFromStickOutputs: {
3977
+ clicked: () => void;
3978
+ };
3979
+ messageViewContext(): any;
3980
+ scrollToBottomContext(): any;
3981
+ scrollToBottomFromStickContext(): any;
3982
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewScrollView, never>;
3983
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewScrollView, "copilot-chat-view-scroll-view", never, { "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "inputContainerHeight": { "alias": "inputContainerHeight"; "required": false; "isSignal": true; }; "isResizing": { "alias": "isResizing"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "messageView": { "alias": "messageView"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "scrollToBottomButton": { "alias": "scrollToBottomButton"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, never, ["*"], true, never>;
3984
+ }
3985
+
3986
+ /**
3987
+ * Feather component for CopilotChatView
3988
+ * Creates a gradient overlay effect between messages and input
3989
+ * Matches React implementation exactly with same Tailwind classes
3990
+ */
3991
+ declare class CopilotChatViewFeather {
3992
+ inputClass: _angular_core.InputSignal<string>;
3993
+ style: _angular_core.InputSignal<{
3994
+ [key: string]: any;
3995
+ }>;
3996
+ get computedClass(): string;
3997
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewFeather, never>;
3998
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewFeather, "copilot-chat-view-feather", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3999
+ }
4000
+
4001
+ /**
4002
+ * Disclaimer component for CopilotChatView
4003
+ * Shows configurable disclaimer text below the input
4004
+ * Integrates with CopilotChatConfigurationService for labels
4005
+ */
4006
+ declare class CopilotChatViewDisclaimer {
4007
+ inputClass: _angular_core.InputSignal<string>;
4008
+ text: _angular_core.InputSignal<string>;
4009
+ readonly labels: _copilotkit_angular.CopilotChatLabels;
4010
+ get disclaimerText(): string;
4011
+ get computedClass(): string;
4012
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewDisclaimer, never>;
4013
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewDisclaimer, "copilot-chat-view-disclaimer", never, { "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4014
+ }
4015
+
4016
+ /**
4017
+ * InputContainer component for CopilotChatView
4018
+ * Container for input and disclaimer components
4019
+ * Uses ForwardRef for DOM access
4020
+ */
4021
+ declare class CopilotChatViewInputContainer extends ElementRef {
4022
+ readonly chatState: ChatState;
4023
+ inputContainerClass: _angular_core.InputSignal<string>;
4024
+ input: _angular_core.InputSignal<any>;
4025
+ inputClass: _angular_core.InputSignal<string>;
4026
+ disclaimer: _angular_core.InputSignal<any>;
4027
+ disclaimerText: _angular_core.InputSignal<string>;
4028
+ disclaimerClass: _angular_core.InputSignal<string>;
4029
+ protected readonly defaultInputComponent: typeof CopilotChatInput;
4030
+ protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimer;
4031
+ constructor(elementRef: ElementRef);
4032
+ get computedClass(): string;
4033
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatViewInputContainer, never>;
4034
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatViewInputContainer, "copilot-chat-view-input-container", never, { "inputContainerClass": { "alias": "inputContainerClass"; "required": false; "isSignal": true; }; "input": { "alias": "input"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "disclaimer": { "alias": "disclaimer"; "required": false; "isSignal": true; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; "isSignal": true; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4035
+ }
4036
+
4037
+ /**
4038
+ * CopilotChatView component - Angular port of the React component.
4039
+ * A complete chat interface with message feed and input components.
4040
+ *
4041
+ * @example
4042
+ * ```html
4043
+ * <copilot-chat-view
4044
+ * [messages]="messages"
4045
+ * [autoScroll]="true"
4046
+ * [messageViewProps]="{ assistantMessage: { onThumbsUp: handleThumbsUp } }">
4047
+ * </copilot-chat-view>
4048
+ * ```
4049
+ */
4050
+ declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDestroy {
4051
+ private resizeObserverService;
4052
+ private cdr;
4053
+ private handlers;
4054
+ protected readonly chatState: ChatState;
4055
+ protected readonly UploadIcon: lucide_angular.LucideIconData;
4056
+ messages: _angular_core.InputSignal<({
4057
+ role: "developer";
4058
+ content: string;
4059
+ id: string;
4060
+ name?: string | undefined;
4061
+ encryptedValue?: string | undefined;
4062
+ } | {
4063
+ role: "system";
4064
+ content: string;
4065
+ id: string;
4066
+ name?: string | undefined;
4067
+ encryptedValue?: string | undefined;
4068
+ } | {
4069
+ role: "assistant";
4070
+ id: string;
4071
+ name?: string | undefined;
4072
+ content?: string | undefined;
4073
+ encryptedValue?: string | undefined;
4074
+ toolCalls?: {
4075
+ function: {
4076
+ name: string;
4077
+ arguments: string;
4078
+ };
4079
+ type: "function";
4080
+ id: string;
4081
+ encryptedValue?: string | undefined;
4082
+ }[] | undefined;
4083
+ } | {
4084
+ role: "user";
4085
+ content: string | ({
4086
+ type: "text";
4087
+ text: string;
4088
+ } | {
4089
+ type: "image";
4090
+ source: {
4091
+ type: "data";
4092
+ value: string;
4093
+ mimeType: string;
4094
+ } | {
4095
+ type: "url";
4096
+ value: string;
4097
+ mimeType?: string | undefined;
4098
+ };
4099
+ metadata?: unknown;
4100
+ } | {
4101
+ type: "audio";
4102
+ source: {
4103
+ type: "data";
4104
+ value: string;
4105
+ mimeType: string;
4106
+ } | {
4107
+ type: "url";
4108
+ value: string;
4109
+ mimeType?: string | undefined;
4110
+ };
4111
+ metadata?: unknown;
4112
+ } | {
4113
+ type: "video";
4114
+ source: {
4115
+ type: "data";
4116
+ value: string;
4117
+ mimeType: string;
4118
+ } | {
4119
+ type: "url";
4120
+ value: string;
4121
+ mimeType?: string | undefined;
4122
+ };
4123
+ metadata?: unknown;
4124
+ } | {
4125
+ type: "document";
4126
+ source: {
4127
+ type: "data";
4128
+ value: string;
4129
+ mimeType: string;
4130
+ } | {
4131
+ type: "url";
4132
+ value: string;
4133
+ mimeType?: string | undefined;
4134
+ };
4135
+ metadata?: unknown;
4136
+ } | {
4137
+ type: "binary";
4138
+ mimeType: string;
4139
+ id?: string | undefined;
4140
+ data?: string | undefined;
4141
+ url?: string | undefined;
4142
+ filename?: string | undefined;
4143
+ })[];
4144
+ id: string;
4145
+ name?: string | undefined;
4146
+ encryptedValue?: string | undefined;
4147
+ } | {
4148
+ role: "tool";
4149
+ toolCallId: string;
4150
+ content: string;
4151
+ id: string;
4152
+ encryptedValue?: string | undefined;
4153
+ error?: string | undefined;
4154
+ } | {
4155
+ role: "activity";
4156
+ content: Record<string, any>;
4157
+ id: string;
4158
+ activityType: string;
4159
+ } | {
4160
+ role: "reasoning";
4161
+ content: string;
4162
+ id: string;
4163
+ encryptedValue?: string | undefined;
4164
+ })[]>;
4165
+ agentId: _angular_core.InputSignal<string>;
4166
+ autoScroll: _angular_core.InputSignal<boolean>;
4167
+ showCursor: _angular_core.InputSignal<boolean>;
4168
+ hasExplicitThreadId: _angular_core.InputSignal<boolean>;
4169
+ messageViewComponent: _angular_core.InputSignal<Type<any>>;
4170
+ messageViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4171
+ messageViewClass: _angular_core.InputSignal<string>;
4172
+ scrollViewComponent: _angular_core.InputSignal<Type<any>>;
4173
+ scrollViewTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4174
+ scrollViewClass: _angular_core.InputSignal<string>;
4175
+ scrollToBottomButtonComponent: _angular_core.InputSignal<Type<any>>;
4176
+ scrollToBottomButtonTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4177
+ scrollToBottomButtonClass: _angular_core.InputSignal<string>;
4178
+ inputComponent: _angular_core.InputSignal<Type<any>>;
4179
+ inputTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4180
+ inputContainerComponent: _angular_core.InputSignal<Type<any>>;
4181
+ inputContainerTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4182
+ inputContainerClass: _angular_core.InputSignal<string>;
4183
+ featherComponent: _angular_core.InputSignal<Type<any>>;
4184
+ featherTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4185
+ featherClass: _angular_core.InputSignal<string>;
4186
+ disclaimerComponent: _angular_core.InputSignal<Type<any>>;
4187
+ disclaimerTemplate: _angular_core.InputSignal<TemplateRef<any>>;
4188
+ disclaimerClass: _angular_core.InputSignal<string>;
4189
+ disclaimerText: _angular_core.InputSignal<string>;
4190
+ customLayoutTemplate?: TemplateRef<any>;
4191
+ sendButtonTemplate?: TemplateRef<any>;
4192
+ toolbarTemplate?: TemplateRef<any>;
4193
+ textAreaTemplate?: TemplateRef<any>;
4194
+ audioRecorderTemplate?: TemplateRef<any>;
4195
+ assistantMessageMarkdownRendererTemplate?: TemplateRef<any>;
4196
+ thumbsUpButtonTemplate?: TemplateRef<any>;
4197
+ thumbsDownButtonTemplate?: TemplateRef<any>;
4198
+ readAloudButtonTemplate?: TemplateRef<any>;
4199
+ regenerateButtonTemplate?: TemplateRef<any>;
4200
+ assistantMessageThumbsUp: _angular_core.OutputEmitterRef<{
4201
+ message: Message$1;
4202
+ }>;
4203
+ assistantMessageThumbsDown: _angular_core.OutputEmitterRef<{
4204
+ message: Message$1;
4205
+ }>;
4206
+ assistantMessageReadAloud: _angular_core.OutputEmitterRef<{
4207
+ message: Message$1;
4208
+ }>;
4209
+ assistantMessageRegenerate: _angular_core.OutputEmitterRef<{
4210
+ message: Message$1;
4211
+ }>;
4212
+ userMessageCopy: _angular_core.OutputEmitterRef<{
4213
+ message: Message$1;
4214
+ }>;
4215
+ userMessageEdit: _angular_core.OutputEmitterRef<{
4216
+ message: Message$1;
4217
+ }>;
4218
+ inputContainerSlotRef?: ElementRef;
4219
+ protected readonly defaultScrollViewComponent: typeof CopilotChatViewScrollView;
4220
+ protected readonly defaultScrollToBottomButtonComponent: typeof CopilotChatViewScrollToBottomButton;
4221
+ protected readonly defaultInputContainerComponent: typeof CopilotChatViewInputContainer;
4222
+ protected readonly defaultInputComponent: typeof CopilotChatInput;
4223
+ protected readonly defaultFeatherComponent: typeof CopilotChatViewFeather;
4224
+ protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimer;
4225
+ protected readonly labels: _copilotkit_angular.CopilotChatLabels;
4226
+ protected messagesValue: _angular_core.Signal<({
4227
+ role: "developer";
4228
+ content: string;
4229
+ id: string;
4230
+ name?: string | undefined;
4231
+ encryptedValue?: string | undefined;
4232
+ } | {
4233
+ role: "system";
4234
+ content: string;
4235
+ id: string;
4236
+ name?: string | undefined;
4237
+ encryptedValue?: string | undefined;
4238
+ } | {
4239
+ role: "assistant";
4240
+ id: string;
4241
+ name?: string | undefined;
4242
+ content?: string | undefined;
4243
+ encryptedValue?: string | undefined;
4244
+ toolCalls?: {
4245
+ function: {
4246
+ name: string;
4247
+ arguments: string;
4248
+ };
4249
+ type: "function";
4250
+ id: string;
4251
+ encryptedValue?: string | undefined;
4252
+ }[] | undefined;
4253
+ } | {
4254
+ role: "user";
4255
+ content: string | ({
4256
+ type: "text";
4257
+ text: string;
4258
+ } | {
4259
+ type: "image";
4260
+ source: {
4261
+ type: "data";
4262
+ value: string;
4263
+ mimeType: string;
4264
+ } | {
4265
+ type: "url";
4266
+ value: string;
4267
+ mimeType?: string | undefined;
4268
+ };
4269
+ metadata?: unknown;
4270
+ } | {
4271
+ type: "audio";
4272
+ source: {
4273
+ type: "data";
4274
+ value: string;
4275
+ mimeType: string;
4276
+ } | {
4277
+ type: "url";
4278
+ value: string;
4279
+ mimeType?: string | undefined;
4280
+ };
4281
+ metadata?: unknown;
4282
+ } | {
4283
+ type: "video";
4284
+ source: {
4285
+ type: "data";
4286
+ value: string;
4287
+ mimeType: string;
4288
+ } | {
4289
+ type: "url";
4290
+ value: string;
4291
+ mimeType?: string | undefined;
4292
+ };
4293
+ metadata?: unknown;
4294
+ } | {
4295
+ type: "document";
4296
+ source: {
4297
+ type: "data";
4298
+ value: string;
4299
+ mimeType: string;
4300
+ } | {
4301
+ type: "url";
4302
+ value: string;
4303
+ mimeType?: string | undefined;
4304
+ };
4305
+ metadata?: unknown;
4306
+ } | {
4307
+ type: "binary";
4308
+ mimeType: string;
4309
+ id?: string | undefined;
4310
+ data?: string | undefined;
4311
+ url?: string | undefined;
4312
+ filename?: string | undefined;
4313
+ })[];
4314
+ id: string;
4315
+ name?: string | undefined;
4316
+ encryptedValue?: string | undefined;
4317
+ } | {
4318
+ role: "tool";
4319
+ toolCallId: string;
4320
+ content: string;
4321
+ id: string;
4322
+ encryptedValue?: string | undefined;
4323
+ error?: string | undefined;
4324
+ } | {
4325
+ role: "activity";
4326
+ content: Record<string, any>;
4327
+ id: string;
4328
+ activityType: string;
4329
+ } | {
4330
+ role: "reasoning";
4331
+ content: string;
4332
+ id: string;
4333
+ encryptedValue?: string | undefined;
4334
+ })[]>;
4335
+ protected autoScrollSignal: _angular_core.Signal<boolean>;
4336
+ protected showCursorSignal: _angular_core.Signal<boolean>;
4337
+ protected disclaimerTextSignal: _angular_core.Signal<string>;
4338
+ protected disclaimerClassSignal: _angular_core.Signal<string>;
4339
+ protected inputContainerHeight: _angular_core.WritableSignal<number>;
4340
+ protected isResizing: _angular_core.WritableSignal<boolean>;
4341
+ protected shouldShowWelcomeScreen: _angular_core.Signal<boolean>;
4342
+ protected computedClass: _angular_core.Signal<string>;
4343
+ protected dropOverlayClass: _angular_core.Signal<string>;
4344
+ protected messageViewSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4345
+ protected scrollViewSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4346
+ protected scrollToBottomButtonSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4347
+ protected inputSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4348
+ protected inputContainerSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4349
+ protected featherSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4350
+ protected disclaimerSlot: _angular_core.Signal<Type<any> | TemplateRef<any>>;
4351
+ protected scrollViewContext: _angular_core.Signal<{
4352
+ autoScroll: boolean;
4353
+ scrollToBottomButton: Type<any> | TemplateRef<any>;
4354
+ scrollToBottomButtonClass: string;
4355
+ inputContainerHeight: number;
4356
+ isResizing: boolean;
4357
+ messages: ({
4358
+ role: "developer";
4359
+ content: string;
4360
+ id: string;
4361
+ name?: string | undefined;
4362
+ encryptedValue?: string | undefined;
4363
+ } | {
4364
+ role: "system";
4365
+ content: string;
4366
+ id: string;
4367
+ name?: string | undefined;
4368
+ encryptedValue?: string | undefined;
4369
+ } | {
4370
+ role: "assistant";
4371
+ id: string;
4372
+ name?: string | undefined;
4373
+ content?: string | undefined;
4374
+ encryptedValue?: string | undefined;
4375
+ toolCalls?: {
4376
+ function: {
4377
+ name: string;
4378
+ arguments: string;
4379
+ };
4380
+ type: "function";
4381
+ id: string;
4382
+ encryptedValue?: string | undefined;
4383
+ }[] | undefined;
4384
+ } | {
4385
+ role: "user";
4386
+ content: string | ({
4387
+ type: "text";
4388
+ text: string;
4389
+ } | {
4390
+ type: "image";
4391
+ source: {
4392
+ type: "data";
4393
+ value: string;
4394
+ mimeType: string;
4395
+ } | {
4396
+ type: "url";
4397
+ value: string;
4398
+ mimeType?: string | undefined;
4399
+ };
4400
+ metadata?: unknown;
4401
+ } | {
4402
+ type: "audio";
4403
+ source: {
4404
+ type: "data";
4405
+ value: string;
4406
+ mimeType: string;
4407
+ } | {
4408
+ type: "url";
4409
+ value: string;
4410
+ mimeType?: string | undefined;
4411
+ };
4412
+ metadata?: unknown;
4413
+ } | {
4414
+ type: "video";
4415
+ source: {
4416
+ type: "data";
4417
+ value: string;
4418
+ mimeType: string;
4419
+ } | {
4420
+ type: "url";
4421
+ value: string;
4422
+ mimeType?: string | undefined;
4423
+ };
4424
+ metadata?: unknown;
4425
+ } | {
4426
+ type: "document";
4427
+ source: {
4428
+ type: "data";
4429
+ value: string;
4430
+ mimeType: string;
4431
+ } | {
4432
+ type: "url";
4433
+ value: string;
4434
+ mimeType?: string | undefined;
4435
+ };
4436
+ metadata?: unknown;
4437
+ } | {
4438
+ type: "binary";
4439
+ mimeType: string;
4440
+ id?: string | undefined;
4441
+ data?: string | undefined;
4442
+ url?: string | undefined;
4443
+ filename?: string | undefined;
4444
+ })[];
4445
+ id: string;
4446
+ name?: string | undefined;
4447
+ encryptedValue?: string | undefined;
4448
+ } | {
4449
+ role: "tool";
4450
+ toolCallId: string;
4451
+ content: string;
4452
+ id: string;
4453
+ encryptedValue?: string | undefined;
4454
+ error?: string | undefined;
4455
+ } | {
4456
+ role: "activity";
4457
+ content: Record<string, any>;
4458
+ id: string;
4459
+ activityType: string;
4460
+ } | {
4461
+ role: "reasoning";
4462
+ content: string;
4463
+ id: string;
4464
+ encryptedValue?: string | undefined;
4465
+ })[];
4466
+ agentId: string;
4467
+ messageView: Type<any> | TemplateRef<any>;
4468
+ messageViewClass: string;
4469
+ }>;
4470
+ protected inputContainerContext: _angular_core.Signal<{
4471
+ input: Type<any> | TemplateRef<any>;
4472
+ disclaimer: Type<any> | TemplateRef<any>;
4473
+ disclaimerText: string;
4474
+ disclaimerClass: string;
4475
+ inputContainerClass: string;
4476
+ }>;
4477
+ protected layoutContext: _angular_core.Signal<{
4478
+ messageView: Type<any> | TemplateRef<any>;
4479
+ input: Type<any> | TemplateRef<any>;
4480
+ scrollView: Type<any> | TemplateRef<any>;
4481
+ scrollToBottomButton: Type<any> | TemplateRef<any>;
4482
+ feather: Type<any> | TemplateRef<any>;
4483
+ inputContainer: Type<any> | TemplateRef<any>;
4484
+ disclaimer: Type<any> | TemplateRef<any>;
4485
+ }>;
4486
+ private destroy$;
4487
+ private resizeTimeoutRef?;
4488
+ constructor(resizeObserverService: ResizeObserverService, cdr: ChangeDetectorRef, handlers: CopilotChatViewHandlers);
4489
+ ngOnInit(): void;
4490
+ ngOnChanges(): void;
4491
+ ngAfterViewInit(): void;
4492
+ ngOnDestroy(): void;
4493
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotChatView, never>;
4494
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotChatView, "copilot-chat-view", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "agentId": { "alias": "agentId"; "required": false; "isSignal": true; }; "autoScroll": { "alias": "autoScroll"; "required": false; "isSignal": true; }; "showCursor": { "alias": "showCursor"; "required": false; "isSignal": true; }; "hasExplicitThreadId": { "alias": "hasExplicitThreadId"; "required": false; "isSignal": true; }; "messageViewComponent": { "alias": "messageViewComponent"; "required": false; "isSignal": true; }; "messageViewTemplate": { "alias": "messageViewTemplate"; "required": false; "isSignal": true; }; "messageViewClass": { "alias": "messageViewClass"; "required": false; "isSignal": true; }; "scrollViewComponent": { "alias": "scrollViewComponent"; "required": false; "isSignal": true; }; "scrollViewTemplate": { "alias": "scrollViewTemplate"; "required": false; "isSignal": true; }; "scrollViewClass": { "alias": "scrollViewClass"; "required": false; "isSignal": true; }; "scrollToBottomButtonComponent": { "alias": "scrollToBottomButtonComponent"; "required": false; "isSignal": true; }; "scrollToBottomButtonTemplate": { "alias": "scrollToBottomButtonTemplate"; "required": false; "isSignal": true; }; "scrollToBottomButtonClass": { "alias": "scrollToBottomButtonClass"; "required": false; "isSignal": true; }; "inputComponent": { "alias": "inputComponent"; "required": false; "isSignal": true; }; "inputTemplate": { "alias": "inputTemplate"; "required": false; "isSignal": true; }; "inputContainerComponent": { "alias": "inputContainerComponent"; "required": false; "isSignal": true; }; "inputContainerTemplate": { "alias": "inputContainerTemplate"; "required": false; "isSignal": true; }; "inputContainerClass": { "alias": "inputContainerClass"; "required": false; "isSignal": true; }; "featherComponent": { "alias": "featherComponent"; "required": false; "isSignal": true; }; "featherTemplate": { "alias": "featherTemplate"; "required": false; "isSignal": true; }; "featherClass": { "alias": "featherClass"; "required": false; "isSignal": true; }; "disclaimerComponent": { "alias": "disclaimerComponent"; "required": false; "isSignal": true; }; "disclaimerTemplate": { "alias": "disclaimerTemplate"; "required": false; "isSignal": true; }; "disclaimerClass": { "alias": "disclaimerClass"; "required": false; "isSignal": true; }; "disclaimerText": { "alias": "disclaimerText"; "required": false; "isSignal": true; }; }, { "assistantMessageThumbsUp": "assistantMessageThumbsUp"; "assistantMessageThumbsDown": "assistantMessageThumbsDown"; "assistantMessageReadAloud": "assistantMessageReadAloud"; "assistantMessageRegenerate": "assistantMessageRegenerate"; "userMessageCopy": "userMessageCopy"; "userMessageEdit": "userMessageEdit"; }, ["customLayoutTemplate", "sendButtonTemplate", "toolbarTemplate", "textAreaTemplate", "audioRecorderTemplate", "assistantMessageMarkdownRendererTemplate", "thumbsUpButtonTemplate", "thumbsDownButtonTemplate", "readAloudButtonTemplate", "regenerateButtonTemplate"], never, true, never>;
4495
+ }
4496
+
4497
+ /**
4498
+ * Props for CopilotChatView component
4499
+ */
4500
+ interface CopilotChatViewProps {
4501
+ messages?: Message$1[];
4502
+ autoScroll?: boolean;
4503
+ messageViewComponent?: Type<any>;
4504
+ messageViewTemplate?: TemplateRef<any>;
4505
+ messageViewClass?: string;
4506
+ scrollViewComponent?: Type<any>;
4507
+ scrollViewTemplate?: TemplateRef<any>;
4508
+ scrollViewClass?: string;
4509
+ scrollToBottomButtonComponent?: Type<any>;
4510
+ scrollToBottomButtonTemplate?: TemplateRef<any>;
4511
+ scrollToBottomButtonClass?: string;
4512
+ inputComponent?: Type<any>;
4513
+ inputTemplate?: TemplateRef<any>;
4514
+ inputContainerComponent?: Type<any>;
4515
+ inputContainerTemplate?: TemplateRef<any>;
4516
+ inputContainerClass?: string;
4517
+ featherComponent?: Type<any>;
4518
+ featherTemplate?: TemplateRef<any>;
4519
+ featherClass?: string;
4520
+ disclaimerComponent?: Type<any>;
4521
+ disclaimerTemplate?: TemplateRef<any>;
4522
+ disclaimerClass?: string;
4523
+ disclaimerText?: string;
4524
+ }
4525
+ /**
4526
+ * Context for custom layout template
4527
+ */
4528
+ interface CopilotChatViewLayoutContext {
4529
+ messageView: any;
4530
+ input: any;
4531
+ scrollView: any;
4532
+ scrollToBottomButton: any;
4533
+ feather: any;
4534
+ inputContainer: any;
4535
+ disclaimer: any;
4536
+ }
4537
+
4538
+ declare class CopilotA2UIActivityRenderer implements ActivityRenderer<unknown> {
4539
+ readonly activityType: _angular_core.InputSignal<string>;
4540
+ readonly content: _angular_core.InputSignal<unknown>;
4541
+ readonly message: _angular_core.InputSignal<{
4542
+ role: "activity";
4543
+ content: Record<string, any>;
4544
+ id: string;
4545
+ activityType: string;
4546
+ }>;
4547
+ readonly agent: _angular_core.InputSignal<AbstractAgent>;
4548
+ private readonly surfaceRef;
4549
+ private readonly copilotKit;
4550
+ private readonly config;
4551
+ constructor();
4552
+ protected handleAction(event: Event): Promise<void>;
4553
+ protected handleError(event: Event): void;
4554
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIActivityRenderer, never>;
4555
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIActivityRenderer, "copilot-a2ui-activity-renderer", never, { "activityType": { "alias": "activityType"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4556
+ }
4557
+
4558
+ /**
4559
+ * Presentational loading placeholder shown while an A2UI tool call is still
4560
+ * streaming. Renders an animated skeleton card whose rows reveal as the
4561
+ * estimated token count climbs through `phase`.
4562
+ */
4563
+ declare class CopilotA2UIProgress {
4564
+ readonly phase: _angular_core.InputSignal<number>;
4565
+ readonly tokens: _angular_core.InputSignal<number>;
4566
+ protected topbarBarClass(): string;
4567
+ protected rowClass(phase: number, delayClass: string): string;
4568
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIProgress, never>;
4569
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIProgress, "copilot-a2ui-progress", never, { "phase": { "alias": "phase"; "required": true; "isSignal": true; }; "tokens": { "alias": "tokens"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4570
+ }
4571
+
4572
+ type A2UIOperation = Record<string, unknown>;
4573
+
4574
+ declare const RENDER_A2UI_TOOL_NAME = "render_a2ui";
4575
+ declare const AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME = "AGUISendStateSnapshot";
4576
+ declare const RenderA2UIArgsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4577
+ interface RenderA2UIArgs extends Record<string, unknown> {
4578
+ items?: unknown[];
4579
+ components?: unknown[];
4580
+ snapshot?: unknown;
4581
+ }
4582
+
4583
+ declare class CopilotA2UIToolRenderer implements ToolRenderer<RenderA2UIArgs> {
4584
+ readonly toolCall: _angular_core.InputSignal<AngularToolCall<RenderA2UIArgs>>;
4585
+ readonly agent: _angular_core.InputSignal<AbstractAgent>;
4586
+ private readonly surfaceRef;
4587
+ private readonly config;
4588
+ private readonly copilotKit;
4589
+ protected readonly renderedOperations: _angular_core.Signal<A2UIOperation[]>;
4590
+ protected readonly tokens: _angular_core.Signal<number>;
4591
+ protected readonly phase: _angular_core.Signal<0 | 1 | 2 | 3>;
4592
+ protected readonly isHidden: _angular_core.Signal<boolean>;
4593
+ constructor();
4594
+ protected handleError(event: Event): void;
4595
+ protected handleAction(event: Event): Promise<void>;
4596
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotA2UIToolRenderer, never>;
4597
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotA2UIToolRenderer, "copilot-a2ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4598
+ }
4599
+
4600
+ type WebsandboxConstructor = typeof Websandbox;
4601
+
4602
+ declare const OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER: InjectionToken<() => Promise<WebsandboxConstructor>>;
4603
+ declare class CopilotOpenGenerativeUIRenderer {
4604
+ readonly content: _angular_core.InputSignal<{
4605
+ html?: string[];
4606
+ initialHeight?: number;
4607
+ generating?: boolean;
4608
+ css?: string;
4609
+ cssComplete?: boolean;
4610
+ htmlComplete?: boolean;
4611
+ jsFunctions?: string;
4612
+ jsFunctionsComplete?: boolean;
4613
+ jsExpressions?: string[];
4614
+ jsExpressionsComplete?: boolean;
4615
+ }>;
4616
+ private readonly containerRef;
4617
+ private readonly destroyRef;
4618
+ private readonly config;
4619
+ private readonly loadWebsandboxModule;
4620
+ private readonly throttledContent;
4621
+ private throttleTimer;
4622
+ private latestContent;
4623
+ private sandbox;
4624
+ private previewSandbox;
4625
+ private sandboxReady;
4626
+ private previewReady;
4627
+ private finalSandboxKey;
4628
+ private executedExpressionIndex;
4629
+ private pendingQueue;
4630
+ private jsFunctionsInjected;
4631
+ private heightMeasured;
4632
+ private autoHeight;
4633
+ private hasReceivedContent;
4634
+ protected readonly fullHtml: _angular_core.Signal<string>;
4635
+ protected readonly css: _angular_core.Signal<string>;
4636
+ protected readonly partialHtml: _angular_core.Signal<string>;
4637
+ protected readonly previewBody: _angular_core.Signal<string>;
4638
+ protected readonly previewStyles: _angular_core.Signal<string>;
4639
+ protected readonly hasPreview: _angular_core.Signal<boolean>;
4640
+ protected readonly hasVisibleSandbox: _angular_core.Signal<boolean>;
4641
+ protected readonly height: _angular_core.Signal<number>;
4642
+ protected readonly isGenerating: _angular_core.Signal<boolean>;
4643
+ private readonly renderState;
4644
+ constructor();
4645
+ private clearThrottle;
4646
+ private loadWebsandbox;
4647
+ private createLocalApi;
4648
+ private createPreviewSandbox;
4649
+ private updatePreviewSandbox;
4650
+ private reconcileSandboxState;
4651
+ private getFinalSandboxKey;
4652
+ private createFinalSandbox;
4653
+ private resetFinalRuntimeState;
4654
+ private injectJsFunctions;
4655
+ private executeNewExpressions;
4656
+ private runOrQueue;
4657
+ private measureFinalHeight;
4658
+ private styleIframe;
4659
+ private destroyPreviewSandbox;
4660
+ private destroyFinalSandbox;
4661
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotOpenGenerativeUIRenderer, never>;
4662
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIRenderer, "copilot-open-generative-ui-renderer", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
4663
+ }
4664
+ declare class CopilotOpenGenerativeUIActivityRenderer implements ActivityRenderer<OpenGenerativeUIContent> {
4665
+ readonly activityType: _angular_core.InputSignal<string>;
4666
+ readonly content: _angular_core.InputSignal<{
4667
+ html?: string[];
4668
+ initialHeight?: number;
4669
+ generating?: boolean;
4670
+ css?: string;
4671
+ cssComplete?: boolean;
4672
+ htmlComplete?: boolean;
4673
+ jsFunctions?: string;
4674
+ jsFunctionsComplete?: boolean;
4675
+ jsExpressions?: string[];
4676
+ jsExpressionsComplete?: boolean;
4677
+ }>;
4678
+ readonly message: _angular_core.InputSignal<{
4679
+ role: "activity";
4680
+ content: Record<string, any>;
4681
+ id: string;
4682
+ activityType: string;
4683
+ }>;
4684
+ readonly agent: _angular_core.InputSignal<AbstractAgent>;
4685
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotOpenGenerativeUIActivityRenderer, never>;
4686
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIActivityRenderer, "copilot-open-generative-ui-activity-renderer", never, { "activityType": { "alias": "activityType"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "agent": { "alias": "agent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4687
+ }
4688
+
4689
+ declare class CopilotOpenGenerativeUIToolRenderer implements ToolRenderer<GenerateSandboxedUiArgs> {
4690
+ readonly toolCall: _angular_core.InputSignal<AngularToolCall<{
4691
+ html?: string;
4692
+ initialHeight?: number;
4693
+ css?: string;
4694
+ jsFunctions?: string;
4695
+ jsExpressions?: string[];
4696
+ placeholderMessages?: string[];
4697
+ }>>;
4698
+ private readonly visibleMessageIndex;
4699
+ private readonly destroyRef;
4700
+ private previousMessageCount;
4701
+ private interval;
4702
+ protected readonly visibleMessage: _angular_core.Signal<string>;
4703
+ constructor();
4704
+ private clearTimer;
4705
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CopilotOpenGenerativeUIToolRenderer, never>;
4706
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CopilotOpenGenerativeUIToolRenderer, "copilot-open-generative-ui-tool-renderer", never, { "toolCall": { "alias": "toolCall"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
4707
+ }
4708
+
4709
+ export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIToolRenderer, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, CopilotChatViewScrollToBottomButton, CopilotChatViewScrollView, CopilotKit, CopilotKitAgentContext, CopilotOpenGenerativeUIActivityRenderer, CopilotOpenGenerativeUIRenderer, CopilotOpenGenerativeUIToolRenderer, CopilotSlot, CopilotTooltip, CopilotkitAgentFactory, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER, OpenGenerativeUIContentSchema, RENDER_A2UI_TOOL_NAME, RenderA2UIArgsSchema, RenderToolCalls, ResizeObserverService, SLOT_CONFIG, ScrollPosition, StickToBottom, TooltipContent, TranscriptionError, anyActivityContentSchema, cn, connectAgentContext, createSlotConfig, createSlotRenderer, getSlotConfig, injectAgentStore, injectChatLabels, injectChatState, injectCopilotKitConfig, isComponentType, isSlotValue, normalizeSlotValue, provideCopilotChatLabels, provideCopilotKit, provideSlots, registerFrontendTool, registerHumanInTheLoop, registerRenderToolCall, renderSlot, transcribeAudio };
4710
+ export type { A2UIConfig, ActivityRenderer, AngularActivityContentParseResult, AngularActivityContentSchema, AngularToolCall, AssistantMessageCopyButtonContext, AssistantMessageMarkdownRendererContext, AssistantMessageToolbarContext, AudioRecorderState, BranchNavigationContext, ClientTool, ConnectAgentContextConfig, CopilotChatAssistantMessageOnReadAloudProps, CopilotChatAssistantMessageOnRegenerateProps, CopilotChatAssistantMessageOnThumbsDownProps, CopilotChatAssistantMessageOnThumbsUpProps, CopilotChatAudioRecorderProps, CopilotChatButtonProps, CopilotChatInputConfig, CopilotChatInputMode, CopilotChatInputOutputs, CopilotChatInputSlots, CopilotChatLabels, CopilotChatMessageViewProps, CopilotChatTextareaProps, CopilotChatToolbarButtonProps, CopilotChatToolbarProps, CopilotChatToolsButtonProps, CopilotChatUserMessageOnEditMessageProps, CopilotChatUserMessageOnSwitchToBranchProps, CopilotChatViewLayoutContext, CopilotChatViewProps, CopilotKitConfig, CopyButtonContext, CursorContext, EditButtonContext, FrontendToolConfig, GenerateSandboxedUiArgs, HumanInTheLoopConfig, HumanInTheLoopToolCall, HumanInTheLoopToolRenderer, MessageRendererContext, MessageViewContext, OpenGenerativeUIConfig, OpenGenerativeUIContent, ReadAloudButtonContext, RegenerateButtonContext, RenderA2UIArgs, RenderActivityMessageConfig, RenderSlotOptions, RenderToolCallConfig, ResizeState, SandboxFunction, ScrollBehavior, ScrollState, SendButtonContext, SlotConfig, SlotContext, SlotRegistryEntry, SlotValue, ThumbsDownButtonContext, ThumbsUpButtonContext, ToolRenderer, ToolbarContext, ToolsMenuItem, TranscriptionErrorInfo, TranscriptionResult, UserMessageToolbarContext, WithSlots };