import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { URI } from "../../../../sessions/sessions.web.main.internal.js"; import { IEditSessionEntryDiff } from "../common/editing/chatEditingService.js"; import { IChatResponseFileChangesProvider, IChatResponseFileEdit, IChatResponseFileChangesOpenContext, IChatResponseFileChangesStats } from "./chatResponseFileChangesService.js"; export declare const IChatResponseFileChangesService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IChatResponseFileChangesService { readonly _serviceBrand: undefined; /** * Registers a provider for a chat session type (as returned by * {@link getChatSessionType}). At most one provider may be registered per * session type. */ registerProvider(chatSessionType: string, provider: IChatResponseFileChangesProvider): IDisposable; /** * Returns the per-request change diffs for `sessionResource` from the * provider registered for its session type, or `undefined` when there is * no provider or the provider cannot supply changes for this request. */ getChangesForRequest(sessionResource: URI, requestId: string): IObservable | undefined; /** * Returns file edits produced by `requestId` from the response output stream, * classified against their owning session, when the provider can supply them. */ getFileEditsForRequest?(sessionResource: URI, requestId: string): IObservable | undefined; /** * Returns authoritative aggregate stats when the owning surface already * projects the request's changes. When omitted, consumers aggregate * {@link getChangesForRequest}. */ getChangeStatsForRequest?(sessionResource: URI, requestId: string, context: IChatResponseFileChangesOpenContext): IObservable | undefined; /** Opens response changes. `requestId` may be omitted for invocations not tied to a rendered response; `context.isLastTurn` controls last-turn routing. */ openChangesForRequest(sessionResource: URI, requestId: string | undefined, context: IChatResponseFileChangesOpenContext): void; }