import { IDisposable } from "../../../../../base/common/lifecycle.js";
import { ChatTreeItem, IChatCodeBlockInfo } from "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chat";
import { IChatRendererContent } from "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/chatViewModel";
export interface IChatContentPart extends IDisposable {
    domNode: HTMLElement | undefined;
    /**
     * Used to indicate a part's ownership of a code block.
     */
    codeblocksPartId?: string;
    /**
     * Codeblocks that were rendered by this part into CodeBlockModelCollection.
     */
    codeblocks?: IChatCodeBlockInfo[];
    /**
     * Returns true if the other content is equivalent to what is already rendered in this content part.
     * Returns false if a rerender is needed.
     * followingContent is all the content that will be rendered after this content part (to support progress messages' behavior).
     */
    hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
    addDisposable?(disposable: IDisposable): void;
}
export interface IChatContentPartRenderContext {
    readonly element: ChatTreeItem;
    readonly elementIndex: number;
    readonly container: HTMLElement;
    readonly content: ReadonlyArray<IChatRendererContent>;
    readonly contentIndex: number;
    readonly preceedingContentParts: ReadonlyArray<IChatContentPart>;
}
