import { AIChatInputWidget, type AIChatInputConfiguration } from '../chat-input-widget.js'; import type { EditableRequestNode } from './chat-view-tree-widget.js'; import { URI } from '@theia/core'; import type { ChatModel, ChatRequestModel, EditableChatRequestModel, ChatHierarchyBranch } from '@theia/ai-chat'; import type { AIVariableResolutionRequest, GenericCapabilitySelections } from '@theia/ai-core'; export declare const AIChatTreeInputConfiguration: unique symbol; export interface AIChatTreeInputConfiguration extends AIChatInputConfiguration { } export declare const AIChatTreeInputArgs: unique symbol; export interface AIChatTreeInputArgs { node: EditableRequestNode; /** * The branch of the chat tree for this request node (used by the input widget for state tracking). */ branch?: ChatHierarchyBranch; initialValue?: string; onQuery: (query: string, modeId?: string, capabilityOverrides?: Record, genericCapabilitySelections?: GenericCapabilitySelections, serverToolSelections?: Record) => Promise; onUnpin?: () => void; onCancel?: (requestModel: ChatRequestModel) => void; onDeleteChangeSet?: (requestModel: ChatRequestModel) => void; onDeleteChangeSetElement?: (requestModel: ChatRequestModel, index: number) => void; } export declare const AIChatTreeInputFactory: unique symbol; export type AIChatTreeInputFactory = (args: AIChatTreeInputArgs) => AIChatTreeInputWidget; export declare class AIChatTreeInputWidget extends AIChatInputWidget { static ID: string; protected readonly args: AIChatTreeInputArgs; protected readonly configuration: AIChatTreeInputConfiguration | undefined; get requestNode(): EditableRequestNode; get request(): EditableChatRequestModel; protected init(): void; protected updateBranch(): void; protected getResourceUri(): URI; addContext(variable: AIVariableResolutionRequest): void; /** * In edit mode, image attachments go to editContextManager like other context. * They don't need separate handling since editContextManager is message-scoped. * We add the variable directly rather than registering with the pending image registry. */ registerPendingImage(variable: AIVariableResolutionRequest): string; protected getContext(): readonly AIVariableResolutionRequest[]; getAllVariablesForRequest(): AIVariableResolutionRequest[]; clearPendingImageAttachments(): void; protected deleteContextElement(index: number): void; /** * No-op in edit mode: the token usage warning is owned by the main chat input * widget so we avoid double-notifying when an edit widget is open alongside it. */ protected evaluateTokenUsageWarning(_chatModel: ChatModel): void; } //# sourceMappingURL=chat-view-tree-input-widget.d.ts.map