import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { ThemeIcon } from "../../../../../base/common/themables.js"; import { URI } from "../../../../../base/common/uri.js"; import { IRange } from "../../../../../editor/common/core/range.js"; import { Location } from "../../../../../editor/common/languages.js"; import { IChatModel } from "../model/chatModel.js"; import { IChatContentReference, IChatProgressMessage } from "../chatService/chatService.js"; import { IDiagnosticVariableEntryFilterData, StringChatContextValue, type IChatRequestVariableEntry } from "./chatVariableEntries.js"; export interface IChatVariableData { id: string; name: string; icon?: ThemeIcon; fullName?: string; description: string; modelDescription?: string; canTakeArgument?: boolean; } export interface IChatRequestProblemsVariable { id: "vscode.problems"; filter: IDiagnosticVariableEntryFilterData; } export declare const isIChatRequestProblemsVariable: (obj: unknown) => obj is IChatRequestProblemsVariable; export type IChatRequestVariableValue = string | URI | Location | Uint8Array | IChatRequestProblemsVariable | StringChatContextValue | unknown; export type IChatVariableResolverProgress = IChatContentReference | IChatProgressMessage; export interface IChatVariableResolver { (messageText: string, arg: string | undefined, model: IChatModel, progress: (part: IChatVariableResolverProgress) => void, token: CancellationToken): Promise; } export interface IDynamicVariable { range: IRange; id: string; fullName?: string; icon?: ThemeIcon; modelDescription?: string; promptText?: string; isFile?: boolean; isDirectory?: boolean; isAttachmentReference?: boolean; data: IChatRequestVariableValue; /** * Implementation-defined metadata that flows through to the resulting * {@link IChatRequestVariableEntry} and any {@link MessageAttachment} * derived from it. Used to round-trip provider-specific data attached * to chat input completions. */ _meta?: Record; } export declare function toAttachedContextDynamicVariable(entry: IChatRequestVariableEntry, range: IRange): IDynamicVariable;