import * as _angular_core from '@angular/core';
import { AfterContentInit, ElementRef } from '@angular/core';
import { FormGroup } from '@angular/forms';

/**
 * @description
 * Individual comment item component displaying a single comment with author information, timestamp, and nested replies.
 * Provides automatic text truncation with expand/collapse functionality for long comments.
 * Supports nested comment threads with collapsible child comments and integrated reply textarea.
 * Displays author avatar, name, creation timestamp, and optional action buttons.
 * Automatically counts and manages child comment items through content projection.
 *
 * @usageNotes
 * ```html
 * <eui-comment-item
 *   [authorName]="'Jane Smith'"
 *   [authorAvatarUrl]="'path/to/avatar.jpg'"
 *   [createdAt]="'1 day ago'"
 *   [currentAuthorAvatarUrl]="currentUser.avatar"
 *   [commentCharLimit]="300"
 *   (commentSend)="onReply($event)">
 *   This is the comment text that will be automatically truncated if it exceeds the character limit.
 *   <eui-comment-item-right-actions>
 *     <button euiIconButton euiBasicButton icon="eui-edit"></button>
 *   </eui-comment-item-right-actions>
 * </eui-comment-item>
 * ```
 *
 * ### Accessibility
 * - "Read more" and "Read less" links are keyboard accessible with proper focus management
 * - Reply link is accessible via keyboard navigation
 * - Nested comment structure uses semantic `<ul>` and `<li>` elements
 * - Avatar component includes proper alt text support
 *
 * ### Notes
 * - Comment text is automatically truncated based on `commentCharLimit` (default: 500 characters)
 * - Nested `eui-comment-item` elements are automatically counted and displayed
 * - Reply textarea appears inline when user clicks "Answer" link
 * - Use `eui-comment-item-right-actions` for action buttons like edit or delete
 */
declare class EuiCommentItemComponent implements AfterContentInit {
    /**
     * URL path to the comment author's avatar image.
     * Displayed alongside the comment to identify the author.
     * Optional.
     */
    authorAvatarUrl: _angular_core.InputSignal<string>;
    /**
     * Name of the comment author.
     * Displayed as the comment header to identify who wrote the comment.
     * Optional.
     */
    authorName: _angular_core.InputSignal<string>;
    /**
     * Timestamp or date string indicating when the comment was created.
     * Displayed in the comment header for temporal context.
     * Optional.
     */
    createdAt: _angular_core.InputSignal<string>;
    /**
     * URL path to the current user's avatar image.
     * Used for the reply textarea to identify the replying user.
     * Optional.
     */
    currentAuthorAvatarUrl: _angular_core.InputSignal<string>;
    /**
     * Indicates whether this comment has nested child comments.
     * When true, displays collapse/expand controls for child comments.
     * @default false
     */
    hasChildren: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /**
     * Controls the expanded/collapsed state of nested child comments.
     * When true, child comments are visible; when false, they are hidden.
     * @default false
     */
    isOpen: _angular_core.WritableSignal<boolean>;
    /**
     * Maximum character length before comment text is truncated.
     * Comments exceeding this limit show "Read more" link to expand full text.
     * @default 500
     */
    commentCharLimit: _angular_core.InputSignalWithTransform<number, unknown>;
    /**
     * Emitted when the user cancels reply input.
     * Payload: void
     * Triggered when user clicks cancel button in the reply textarea.
     */
    commentCancel: _angular_core.OutputEmitterRef<void>;
    /**
     * Emitted when the user submits a reply comment.
     * Payload: string - the reply comment text entered by the user
     * Triggered when user clicks send button in the reply textarea.
     */
    commentSend: _angular_core.OutputEmitterRef<string>;
    subCommentItems: _angular_core.Signal<readonly EuiCommentItemComponent[]>;
    comment: _angular_core.Signal<ElementRef<HTMLElement>>;
    nbSubCommentItems: _angular_core.Signal<number>;
    isVisibleReplyInput: _angular_core.WritableSignal<boolean>;
    fullText: _angular_core.WritableSignal<string>;
    truncatedText: _angular_core.WritableSignal<string>;
    isTruncated: _angular_core.WritableSignal<boolean>;
    isExpanded: _angular_core.WritableSignal<boolean>;
    ngAfterContentInit(): void;
    toggleExpanded(e: MouseEvent): void;
    onToggleReplyInput(e: MouseEvent): void;
    onToggleOpen(): void;
    onCommentCancel(): void;
    onCommentSend(comment: string): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiCommentItemComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiCommentItemComponent, "eui-comment-item", never, { "authorAvatarUrl": { "alias": "authorAvatarUrl"; "required": false; "isSignal": true; }; "authorName": { "alias": "authorName"; "required": false; "isSignal": true; }; "createdAt": { "alias": "createdAt"; "required": false; "isSignal": true; }; "currentAuthorAvatarUrl": { "alias": "currentAuthorAvatarUrl"; "required": false; "isSignal": true; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "commentCharLimit": { "alias": "commentCharLimit"; "required": false; "isSignal": true; }; }, { "commentCancel": "commentCancel"; "commentSend": "commentSend"; }, ["subCommentItems"], ["eui-comment-item-right-actions", "*", "eui-comment-item"], true, never>;
}

/**
 * @description
 * `eui-comment-thread` component for displaying nested conversations with reply functionality.
 * Provides a collapsible container for comment items with integrated textarea for adding new comments.
 * Supports flexible textarea positioning (top or bottom) and optional collapse/expand behavior.
 * Automatically counts and manages child comment items through content projection.
 * Typically used for discussion threads, feedback sections, or collaborative commenting features.
 *
 * @usageNotes
 * ```html
 * <eui-comment-thread
 *   [currentAuthorAvatarUrl]="currentUser.avatar"
 *   [isOpen]="true"
 *   (commentSend)="onAddComment($event)">
 *   <eui-comment-item
 *     [authorName]="'John Doe'"
 *     [authorAvatarUrl]="'path/to/avatar.jpg'"
 *     [createdAt]="'2 hours ago'">
 *     This is a comment text.
 *   </eui-comment-item>
 * </eui-comment-thread>
 * ```
 *
 * ### Accessibility
 * - Collapse/expand buttons include proper ARIA labels through translation keys
 * - Comment count is announced to screen readers (singular/plural forms)
 * - Nested comment structure maintains semantic HTML with proper list elements
 *
 * ### Notes
 * - Use `textareaPosition` to control whether new comments appear above or below existing ones
 * - Set `isCollapsable` to false for always-visible comment threads
 * - The component automatically counts child `eui-comment-item` elements
 */
declare class EuiCommentThreadComponent {
    /**
     * Placeholder text displayed in the comment textarea when empty.
     * Supports translation keys for internationalization.
     * @default 'eui.ADD-A-COMMENT'
     */
    placeholder: _angular_core.InputSignal<string>;
    /**
     * Position of the comment textarea relative to the comment items.
     * When 'top', textarea appears above comments; when 'bottom', below comments.
     * @default 'top'
     */
    textareaPosition: _angular_core.InputSignal<"top" | "bottom">;
    /**
     * Controls visibility of the comment textarea.
     * When false, hides the textarea preventing new comment input.
     * @default true
     */
    hasTextarea: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /**
     * URL path to the current user's avatar image.
     * Displayed alongside the comment textarea to identify the commenter.
     * Optional.
     */
    currentAuthorAvatarUrl: _angular_core.InputSignal<string>;
    /**
     * Controls the expanded/collapsed state of the comment thread.
     * When true, thread is expanded showing all comments; when false, thread is collapsed.
     * @default false
     */
    isOpen: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /**
     * Enables collapse/expand functionality for the comment thread.
     * When true, displays toggle control; when false, thread remains static.
     * @default true
     */
    isCollapsable: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /**
     * Emitted when the user cancels comment input.
     * Payload: void
     * Triggered when user clicks cancel button in the comment textarea.
     */
    commentCancel: _angular_core.OutputEmitterRef<void>;
    /**
     * Emitted when the user submits a new comment.
     * Payload: string - the comment text entered by the user
     * Triggered when user clicks send button in the comment textarea.
     */
    commentSend: _angular_core.OutputEmitterRef<string>;
    subCommentItems: _angular_core.Signal<readonly EuiCommentItemComponent[]>;
    nbSubCommentItems: _angular_core.Signal<number>;
    isOpened: _angular_core.WritableSignal<boolean>;
    onCommentCancel(): void;
    onCommentSend(comment: string): void;
    onToggleOpen(): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiCommentThreadComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiCommentThreadComponent, "eui-comment-thread", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "textareaPosition": { "alias": "textareaPosition"; "required": false; "isSignal": true; }; "hasTextarea": { "alias": "hasTextarea"; "required": false; "isSignal": true; }; "currentAuthorAvatarUrl": { "alias": "currentAuthorAvatarUrl"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "isCollapsable": { "alias": "isCollapsable"; "required": false; "isSignal": true; }; }, { "commentCancel": "commentCancel"; "commentSend": "commentSend"; }, ["subCommentItems"], ["*"], true, never>;
}

/**
 * @description
 * `eui-comment-textarea` component providing an input area for composing and submitting comments.
 * Displays user avatar alongside textarea with send and cancel action buttons.
 * Implements reactive forms for comment input with automatic reset after submission or cancellation.
 * Includes accessibility features through Angular CDK A11y module with focus trapping.
 * Used within eui-comment-thread for adding new comments or replies.
 *
 * @usageNotes
 * ```html
 * <eui-comment-textarea
 *   [currentAuthorAvatarUrl]="currentUser.avatar"
 *   [placeholder]="'Add your comment...'"
 *   (commentSend)="onSubmit($event)"
 *   (commentCancel)="onCancel()">
 * </eui-comment-textarea>
 * ```
 *
 * ### Accessibility
 * - Focus is automatically trapped within the textarea using `cdkTrapFocus`
 * - Focus is captured on component initialization with `cdkTrapFocusAutoCapture`
 * - Send and Cancel buttons are keyboard accessible
 * - Placeholder text supports translation for internationalization
 *
 * ### Notes
 * - Form automatically resets after sending or canceling a comment
 * - Textarea auto-resizes based on content using `autoResize` directive
 * - Uses reactive forms for robust form state management
 * - Avatar is optional and can be omitted by not providing `currentAuthorAvatarUrl`
 */
declare class EuiCommentTextareaComponent {
    /**
     * URL path to the current user's avatar image.
     * Displayed alongside the textarea to identify the commenter.
     * Optional.
     */
    currentAuthorAvatarUrl: _angular_core.InputSignal<string>;
    /**
     * Placeholder text displayed in the textarea when empty.
     * Supports translation keys for internationalization.
     * @default 'eui.ANSWER'
     */
    placeholder: _angular_core.InputSignal<string>;
    /**
     * Emitted when the user cancels comment input.
     * Payload: void
     * Triggered when user clicks cancel button. Automatically resets the form.
     */
    commentCancel: _angular_core.OutputEmitterRef<void>;
    /**
     * Emitted when the user submits a comment.
     * Payload: string - the comment text entered by the user
     * Triggered when user clicks send button. Automatically resets the form after emission.
     */
    commentSend: _angular_core.OutputEmitterRef<string>;
    form: FormGroup;
    onCommentCancel(): void;
    onCommentSend(): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiCommentTextareaComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiCommentTextareaComponent, "eui-comment-textarea", never, { "currentAuthorAvatarUrl": { "alias": "currentAuthorAvatarUrl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "commentCancel": "commentCancel"; "commentSend": "commentSend"; }, never, never, true, never>;
}

/**
 * @description
 * Container component for right-aligned action buttons within a comment item.
 * Provides a designated area for actions like edit, delete, reply, or other comment-specific operations.
 * Content is projected via ng-content allowing flexible composition of action buttons.
 * Automatically applies appropriate positioning and spacing for right-aligned actions.
 * Used within eui-comment-item to organize action controls.
 *
 * @usageNotes
 * ```html
 * <eui-comment-item [authorName]="'John Doe'">
 *   Comment text here
 *   <eui-comment-item-right-actions>
 *     <button euiIconButton euiBasicButton icon="eui-edit"></button>
 *     <button euiIconButton euiBasicButton icon="eui-delete"></button>
 *   </eui-comment-item-right-actions>
 * </eui-comment-item>
 * ```
 *
 * ### Accessibility
 * - Ensure projected buttons have proper ARIA labels or accessible text
 * - Icon buttons should include `aria-label` attributes for screen readers
 * - Maintain logical tab order for keyboard navigation
 *
 * ### Notes
 * - Must be used as a child of `eui-comment-item` component
 * - Accepts any content via content projection (buttons, dropdowns, etc.)
 * - Automatically positioned in the top-right corner of the comment header
 * - Commonly used for edit, delete, flag, or more actions menu
 */
declare class EuiCommentItemRightActionsComponent {
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiCommentItemRightActionsComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiCommentItemRightActionsComponent, "eui-comment-item-right-actions", never, {}, {}, never, ["*"], true, never>;
}

declare const EUI_COMMENT_THREAD: readonly [typeof EuiCommentThreadComponent, typeof EuiCommentItemComponent, typeof EuiCommentTextareaComponent, typeof EuiCommentItemRightActionsComponent];

export { EUI_COMMENT_THREAD, EuiCommentItemComponent, EuiCommentItemRightActionsComponent, EuiCommentTextareaComponent, EuiCommentThreadComponent };
//# sourceMappingURL=eui-components-eui-comment-thread.d.ts.map
