import { TemplateRef, Type, ElementRef, ChangeDetectorRef, OnInit, OnChanges, OnDestroy, AfterViewInit } from "@angular/core";
import { CopilotChatViewScrollView } from "./copilot-chat-view-scroll-view";
import { CopilotChatViewScrollToBottomButton } from "./copilot-chat-view-scroll-to-bottom-button";
import { CopilotChatViewFeather } from "./copilot-chat-view-feather";
import { CopilotChatViewInputContainer } from "./copilot-chat-view-input-container";
import { CopilotChatViewDisclaimer } from "./copilot-chat-view-disclaimer";
import { Message } from "@ag-ui/client";
import { ResizeObserverService } from "../../resize-observer";
import { CopilotChatViewHandlers } from "./copilot-chat-view-handlers";
import * as i0 from "@angular/core";
/**
* CopilotChatView component - Angular port of the React component.
* A complete chat interface with message feed and input components.
*
* @example
* ```html
*
*
* ```
*/
export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit, OnDestroy {
private resizeObserverService;
private cdr;
private handlers;
messages: import("@angular/core").InputSignal<({
role: "developer";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "system";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "assistant";
id: string;
name?: string | undefined;
content?: string | undefined;
encryptedValue?: string | undefined;
toolCalls?: {
function: {
name: string;
arguments: string;
};
type: "function";
id: string;
encryptedValue?: string | undefined;
}[] | undefined;
} | {
role: "user";
content: string | ({
type: "text";
text: string;
} | {
type: "image";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "audio";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "video";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "document";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "binary";
mimeType: string;
id?: string | undefined;
data?: string | undefined;
url?: string | undefined;
filename?: string | undefined;
})[];
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "tool";
toolCallId: string;
content: string;
id: string;
encryptedValue?: string | undefined;
error?: string | undefined;
} | {
role: "activity";
content: Record;
id: string;
activityType: string;
} | {
role: "reasoning";
content: string;
id: string;
encryptedValue?: string | undefined;
})[]>;
autoScroll: import("@angular/core").InputSignal;
showCursor: import("@angular/core").InputSignal;
messageViewComponent: import("@angular/core").InputSignal>;
messageViewTemplate: import("@angular/core").InputSignal>;
messageViewClass: import("@angular/core").InputSignal;
scrollViewComponent: import("@angular/core").InputSignal>;
scrollViewTemplate: import("@angular/core").InputSignal>;
scrollViewClass: import("@angular/core").InputSignal;
scrollToBottomButtonComponent: import("@angular/core").InputSignal>;
scrollToBottomButtonTemplate: import("@angular/core").InputSignal>;
scrollToBottomButtonClass: import("@angular/core").InputSignal;
inputComponent: import("@angular/core").InputSignal>;
inputTemplate: import("@angular/core").InputSignal>;
inputContainerComponent: import("@angular/core").InputSignal>;
inputContainerTemplate: import("@angular/core").InputSignal>;
inputContainerClass: import("@angular/core").InputSignal;
featherComponent: import("@angular/core").InputSignal>;
featherTemplate: import("@angular/core").InputSignal>;
featherClass: import("@angular/core").InputSignal;
disclaimerComponent: import("@angular/core").InputSignal>;
disclaimerTemplate: import("@angular/core").InputSignal>;
disclaimerClass: import("@angular/core").InputSignal;
disclaimerText: import("@angular/core").InputSignal;
customLayoutTemplate?: TemplateRef;
sendButtonTemplate?: TemplateRef;
toolbarTemplate?: TemplateRef;
textAreaTemplate?: TemplateRef;
audioRecorderTemplate?: TemplateRef;
assistantMessageMarkdownRendererTemplate?: TemplateRef;
thumbsUpButtonTemplate?: TemplateRef;
thumbsDownButtonTemplate?: TemplateRef;
readAloudButtonTemplate?: TemplateRef;
regenerateButtonTemplate?: TemplateRef;
assistantMessageThumbsUp: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
assistantMessageThumbsDown: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
assistantMessageReadAloud: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
assistantMessageRegenerate: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
userMessageCopy: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
userMessageEdit: import("@angular/core").OutputEmitterRef<{
message: Message;
}>;
inputContainerSlotRef?: ElementRef;
protected readonly defaultScrollViewComponent: typeof CopilotChatViewScrollView;
protected readonly defaultScrollToBottomButtonComponent: typeof CopilotChatViewScrollToBottomButton;
protected readonly defaultInputContainerComponent: typeof CopilotChatViewInputContainer;
protected readonly defaultFeatherComponent: typeof CopilotChatViewFeather;
protected readonly defaultDisclaimerComponent: typeof CopilotChatViewDisclaimer;
protected messagesValue: import("@angular/core").Signal<({
role: "developer";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "system";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "assistant";
id: string;
name?: string | undefined;
content?: string | undefined;
encryptedValue?: string | undefined;
toolCalls?: {
function: {
name: string;
arguments: string;
};
type: "function";
id: string;
encryptedValue?: string | undefined;
}[] | undefined;
} | {
role: "user";
content: string | ({
type: "text";
text: string;
} | {
type: "image";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "audio";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "video";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "document";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "binary";
mimeType: string;
id?: string | undefined;
data?: string | undefined;
url?: string | undefined;
filename?: string | undefined;
})[];
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "tool";
toolCallId: string;
content: string;
id: string;
encryptedValue?: string | undefined;
error?: string | undefined;
} | {
role: "activity";
content: Record;
id: string;
activityType: string;
} | {
role: "reasoning";
content: string;
id: string;
encryptedValue?: string | undefined;
})[]>;
protected autoScrollSignal: import("@angular/core").Signal;
protected showCursorSignal: import("@angular/core").Signal;
protected disclaimerTextSignal: import("@angular/core").Signal;
protected disclaimerClassSignal: import("@angular/core").Signal;
protected inputContainerHeight: import("@angular/core").WritableSignal;
protected isResizing: import("@angular/core").WritableSignal;
protected contentPaddingBottom: import("@angular/core").Signal;
protected computedClass: import("@angular/core").Signal;
protected messageViewSlot: import("@angular/core").Signal | TemplateRef>;
protected scrollViewSlot: import("@angular/core").Signal | TemplateRef>;
protected scrollToBottomButtonSlot: import("@angular/core").Signal | TemplateRef>;
protected inputSlot: import("@angular/core").Signal | TemplateRef>;
protected inputContainerSlot: import("@angular/core").Signal | TemplateRef>;
protected featherSlot: import("@angular/core").Signal | TemplateRef>;
protected disclaimerSlot: import("@angular/core").Signal | TemplateRef>;
protected scrollViewContext: import("@angular/core").Signal<{
autoScroll: boolean;
scrollToBottomButton: Type | TemplateRef;
scrollToBottomButtonClass: string;
inputContainerHeight: number;
isResizing: boolean;
messages: ({
role: "developer";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "system";
content: string;
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "assistant";
id: string;
name?: string | undefined;
content?: string | undefined;
encryptedValue?: string | undefined;
toolCalls?: {
function: {
name: string;
arguments: string;
};
type: "function";
id: string;
encryptedValue?: string | undefined;
}[] | undefined;
} | {
role: "user";
content: string | ({
type: "text";
text: string;
} | {
type: "image";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "audio";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "video";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "document";
source: {
type: "data";
value: string;
mimeType: string;
} | {
type: "url";
value: string;
mimeType?: string | undefined;
};
metadata?: unknown;
} | {
type: "binary";
mimeType: string;
id?: string | undefined;
data?: string | undefined;
url?: string | undefined;
filename?: string | undefined;
})[];
id: string;
name?: string | undefined;
encryptedValue?: string | undefined;
} | {
role: "tool";
toolCallId: string;
content: string;
id: string;
encryptedValue?: string | undefined;
error?: string | undefined;
} | {
role: "activity";
content: Record;
id: string;
activityType: string;
} | {
role: "reasoning";
content: string;
id: string;
encryptedValue?: string | undefined;
})[];
messageView: Type | TemplateRef;
messageViewClass: string;
}>;
protected inputContainerContext: import("@angular/core").Signal<{
input: Type | TemplateRef;
disclaimer: Type | TemplateRef;
disclaimerText: string;
disclaimerClass: string;
inputContainerClass: string;
}>;
protected layoutContext: import("@angular/core").Signal<{
messageView: Type | TemplateRef;
input: Type | TemplateRef;
scrollView: Type | TemplateRef;
scrollToBottomButton: Type | TemplateRef;
feather: Type | TemplateRef;
inputContainer: Type | TemplateRef;
disclaimer: Type | TemplateRef;
}>;
private destroy$;
private resizeTimeoutRef?;
constructor(resizeObserverService: ResizeObserverService, cdr: ChangeDetectorRef, handlers: CopilotChatViewHandlers);
ngOnInit(): void;
ngOnChanges(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}