import * as i0 from "@angular/core"; import { OnDestroy, OnInit, TemplateRef } from "@angular/core"; import { ChatAttachmentRenderContext, ChatInputRenderContext, ChatMessageRenderContext, ChatRenderContext, ChatRenderers, IgcChatComponent, IgcChatMessage, IgcChatMessageAttachment, IgcChatMessageReaction, IgcChatOptions } from "igniteui-webcomponents"; type ChatContextUnion = ChatAttachmentRenderContext | ChatMessageRenderContext | ChatInputRenderContext | ChatRenderContext; type ChatContextType = T extends ChatAttachmentRenderContext ? IgcChatMessageAttachment : T extends ChatMessageRenderContext ? IgcChatMessage : T extends ChatInputRenderContext ? string : T extends ChatRenderContext ? { instance: IgcChatComponent; } : never; type ExtractChatContext = T extends ((ctx: infer R) => any) ? R : never; type ChatTemplatesContextMap = { [K in keyof ChatRenderers]: { $implicit: ChatContextType> & ChatContextUnion>; }; }; /** * Template references for customizing chat component rendering. * Each property corresponds to a specific part of the chat UI that can be customized. * * @example * ```typescript * templates = { * messageContent: this.customMessageTemplate, * attachment: this.customAttachmentTemplate * } * ``` */ export type IgxChatTemplates = { [K in keyof Omit]?: TemplateRef; }; /** * Configuration options for the chat component. */ export type IgxChatOptions = Omit; /** * Angular wrapper component for the Ignite UI Web Components Chat component. * * This component provides an Angular-friendly interface to the igc-chat web component, * including support for Angular templates, signals, and change detection. * * Uses OnPush change detection strategy for optimal performance. All inputs are signals, * so changes are automatically tracked and propagated to the underlying web component. * * @example * ```typescript * * ``` */ export declare class IgxChatComponent implements OnInit, OnDestroy { private readonly _view; private readonly _templateViewRefs; private _oldTemplates; protected readonly _transformedTemplates: import("@angular/core").WritableSignal; protected readonly _mergedOptions: import("@angular/core").Signal; /** Array of chat messages to display */ readonly messages: import("@angular/core").InputSignal; /** Draft message with text and optional attachments */ readonly draftMessage: import("@angular/core").InputSignal<{ text: string; attachments?: IgcChatMessageAttachment[]; } | undefined>; /** Configuration options for the chat component */ readonly options: import("@angular/core").InputSignal; /** Custom templates for rendering chat elements */ readonly templates: import("@angular/core").InputSignal; /** Emitted when a new message is created */ readonly messageCreated: import("@angular/core").OutputEmitterRef; /** Emitted when a user reacts to a message */ readonly messageReact: import("@angular/core").OutputEmitterRef; /** Emitted when an attachment is clicked */ readonly attachmentClick: import("@angular/core").OutputEmitterRef; /** Emitted when attachment drag starts */ readonly attachmentDrag: import("@angular/core").OutputEmitterRef; /** Emitted when attachment is dropped */ readonly attachmentDrop: import("@angular/core").OutputEmitterRef; /** Emitted when typing indicator state changes */ readonly typingChange: import("@angular/core").OutputEmitterRef; /** Emitted when the input receives focus */ readonly inputFocus: import("@angular/core").OutputEmitterRef; /** Emitted when the input loses focus */ readonly inputBlur: import("@angular/core").OutputEmitterRef; /** Emitted when the input value changes */ readonly inputChange: import("@angular/core").OutputEmitterRef; /** @internal */ ngOnInit(): void; /** @internal */ ngOnDestroy(): void; constructor(); private _setTemplates; private _createTemplateRenderer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Context provided to the chat input template. */ export interface ChatInputContext { /** The current input value */ $implicit: string; /** Array of attachments associated with the input */ attachments: IgcChatMessageAttachment[]; } /** * Directive providing type information for chat message template contexts. * Use this directive on ng-template elements that render chat messages. * * @example * ```html * *
{{ message.text }}
*
* ``` */ export declare class IgxChatMessageContextDirective { static ngTemplateContextGuard(_: IgxChatMessageContextDirective, ctx: unknown): ctx is { $implicit: IgcChatMessage; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Directive providing type information for chat attachment template contexts. * Use this directive on ng-template elements that render message attachments. * * @example * ```html * * * * ``` */ export declare class IgxChatAttachmentContextDirective { static ngTemplateContextGuard(_: IgxChatAttachmentContextDirective, ctx: unknown): ctx is { $implicit: IgcChatMessageAttachment; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Directive providing type information for chat input template contexts. * Use this directive on ng-template elements that render the chat input. * * @example * ```html * * * * ``` */ export declare class IgxChatInputContextDirective { static ngTemplateContextGuard(_: IgxChatInputContextDirective, ctx: unknown): ctx is ChatInputContext; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export {};