import { URI } from "../../../../../base/common/uri.js"; import { IRange } from "../../../../../editor/common/core/range.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IChatRequestFileEntry, IChatRequestVariableEntry } from "../../common/attachments/chatVariableEntries.js"; import { IFileService } from "../../../../../platform/files/common/files.service.js"; import { ISharedWebContentExtractorService } from "../../../../../platform/webContentExtractor/common/webContentExtractor.service.js"; import { IChatAttachmentResolveService } from "./chatAttachmentResolveService.service.js"; export interface IChatAttachmentChangeEvent { readonly deleted: readonly string[]; readonly added: readonly IChatRequestVariableEntry[]; readonly updated: readonly IChatRequestVariableEntry[]; } export declare class ChatAttachmentModel extends Disposable { private readonly fileService; private readonly webContentExtractorService; private readonly chatAttachmentResolveService; private readonly _attachments; private readonly _fileWatchers; private _onDidChange; readonly onDidChange: import("../../../../../base/common/event.js").Event; constructor(fileService: IFileService, webContentExtractorService: ISharedWebContentExtractorService, chatAttachmentResolveService: IChatAttachmentResolveService); get attachments(): ReadonlyArray; get size(): number; get fileAttachments(): URI[]; getAttachmentIDs(): Set; addFile(uri: URI, range?: IRange): Promise; addFolder(uri: URI): void; clear(clearStickyAttachments?: boolean): void; addContext(...attachments: IChatRequestVariableEntry[]): void; clearAndSetContext(...attachments: IChatRequestVariableEntry[]): void; delete(...variableEntryIds: string[]): void; updateContext(toDelete: Iterable, upsert: Iterable): void; private _maybeResolveDirectoryImageCount; private _watchAttachment; asFileVariableEntry(uri: URI, range?: IRange): IChatRequestFileEntry; asImageVariableEntry(uri: URI): Promise; }