import { type AssistantMessage } from "@earendil-works/pi-ai";
type MarkdownDescriptorKind = "text-md" | "thinking-md";
type TextDescriptorKind = "thinking-label" | "provider-native-summary" | "provider-native-body" | "error-text" | "handoff-line" | "handoff-body";
type AssistantRenderDescriptorKind = "spacer" | MarkdownDescriptorKind | TextDescriptorKind;
export type AssistantRenderDescriptor = {
    readonly kind: AssistantRenderDescriptorKind;
    readonly text: string;
    /** Index of the thinking run this label/body belongs to; set only for thinking descriptors. */
    readonly thinkingRun?: number;
    /** Index of the handoff block this fold line/body belongs to; set only for handoff descriptors. */
    readonly handoffBlock?: number;
};
type AssistantRenderDescriptorOptions = {
    readonly expanded: boolean;
    readonly providerErrorOwned?: boolean;
    readonly hiddenThinkingLabel: string;
    readonly hideThinkingBlock: boolean;
    /** Per-run click overrides of `hideThinkingBlock`, keyed by thinking run index. */
    readonly thinkingVisibilityOverrides?: ReadonlyMap<number, boolean>;
    /** Per-block click overrides of `expanded` for handoff folds, keyed by handoff block index. */
    readonly handoffOpenOverrides?: ReadonlyMap<number, boolean>;
    readonly hasToolCalls: boolean;
    /** Shows the turn-ending error or abort notice even though the row holds tool calls (a replayed turn). */
    readonly ownsTurnNotice?: boolean;
};
export declare function createAssistantRenderDescriptors(message: AssistantMessage, options: AssistantRenderDescriptorOptions): readonly AssistantRenderDescriptor[];
export {};
//# sourceMappingURL=assistant-render-descriptors.d.ts.map