import { URI } from "../../../../../base/common/uri.js"; import { ITextModel } from "../../../../../editor/common/model.js"; import { IAgentsWindowDraft } from "../../../../../platform/window/common/window.js"; import { IChatRequestVariableEntry } from "./chatVariableEntries.js"; import { IDynamicVariable } from "./chatVariables.js"; export interface IChatDraft { readonly inputText: string; readonly attachments: readonly IChatRequestVariableEntry[]; /** * The references of the input text, by the id of what they stand for and * their range in the text. They tell apart mentions of attachments that * share a name, which inline attachment pills are saved as. */ readonly references?: readonly IDynamicVariable[]; } export declare class UnsupportedChatDraftAttachmentError extends Error { constructor(); } export declare function serializeChatDraft(draft: IChatDraft, getTextModel?: (resource: URI) => ITextModel | null): IAgentsWindowDraft; export declare function reviveChatDraft(draft: IAgentsWindowDraft): IChatDraft;