/*! * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { DomBuilderObject, ExtendedHTMLElement } from '../../helper/dom'; import { CardRenderDetails, CodeBlockActions, OnCodeBlockActionFunction, OnCopiedToClipboardFunction, ReferenceTrackerInformation } from '../../static'; import { CardBody } from '../card/card-body'; export interface ChatItemCardContentProps { body?: string | null; testId?: string; renderAsStream?: boolean; classNames?: string[]; unlimitedCodeBlockHeight?: boolean; hideCodeBlockLanguage?: boolean; wrapCode?: boolean; codeReference?: ReferenceTrackerInformation[] | null; onAnimationStateChange?: (isAnimating: boolean) => void; contentProperties?: { codeBlockActions?: CodeBlockActions; onLinkClick?: (url: string, e: MouseEvent) => void; onCopiedToClipboard?: OnCopiedToClipboardFunction; onCodeBlockAction?: OnCodeBlockActionFunction; }; children?: Array; } export declare class ChatItemCardContent { private props; render: ExtendedHTMLElement; contentBody: CardBody | null; private readonly updateStack; private typewriterItemIndex; private readonly typewriterId; private lastAnimationDuration; private updateTimer; private isStreamActive; constructor(props: ChatItemCardContentProps); private readonly getCardContent; private readonly updateCard; readonly updateCardStack: (updateWith: Partial) => void; readonly endStream: () => void; private readonly updateDOMContent; private readonly flushRemainingUpdates; readonly getRenderDetails: () => CardRenderDetails; }