import type { AssistantMessage } from "@earendil-works/pi-ai";
import { Container, type MarkdownTheme } from "@earendil-works/pi-tui";
import type { MarkdownTransformer } from "../../../core/extensions/types.ts";
export declare class AssistantMessageComponent extends Container {
    private renderCache?;
    private contentContainer;
    private hideThinkingBlock;
    private markdownTheme;
    private hiddenThinkingLabel;
    private outputPad;
    private markdownTransformers;
    private lastMessage?;
    private lastMessageSignature?;
    private renderDescriptors;
    private hasToolCalls;
    private expanded;
    private providerErrorOwned;
    private ownsTurnNotice;
    private isStreaming;
    private thinkingVisibilityOverrides;
    private handoffOpenOverrides;
    /** Moves whenever the cached render is dropped; output is a function of the state `updateContent` records. */
    private revision;
    constructor(message?: AssistantMessage, hideThinkingBlock?: boolean, markdownTheme?: MarkdownTheme, hiddenThinkingLabel?: string, outputPad?: number, markdownTransformers?: readonly MarkdownTransformer[]);
    invalidate(): void;
    setHideThinkingBlock(hide: boolean): void;
    setHiddenThinkingLabel(label: string): void;
    setExpanded(expanded: boolean): void;
    /** A replayed turn draws in one component, so it shows its own turn-ending notice (senpi#4958). */
    setOwnsTurnNotice(owned: boolean): void;
    setProviderErrorOwned(owned: boolean): void;
    /** Transcript-only reasoning/empty streaming heads may sit inside a compact exploration group. */
    get isExplorationDetail(): boolean;
    setOutputPad(padding: number): void;
    getRenderRevision(): number;
    render(width: number): string[];
    updateContent(message: AssistantMessage, isStreaming?: boolean): void;
    private reconcileRenderDescriptors;
    private createRenderChild;
    /**
     * Left-clicking a thinking run toggles that run between its label and its body (upstream
     * 71026970a). The mouse handler is attached to the Markdown/Text child itself so the
     * incremental reconciler still sees the same child types it updates in place.
     */
    private withThinkingToggle;
    /** Left-clicking a handoff fold line or its open body toggles that block, like a thinking run. */
    private withHandoffToggle;
    private createMessageSignature;
    private cacheRender;
    private refreshContent;
}
//# sourceMappingURL=assistant-message.d.ts.map