import { IReference } from "../../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../../base/common/observable.js"; import { ToolDefinition } from "../../../../../../platform/agentHost/common/state/sessionState.js"; import { URI } from "../../../../../../sessions/sessions.web.main.internal.js"; import { ICustomizationSyncProvider } from "../../../common/customizationHarnessService.js"; import { IAgentCustomizationScope } from "./agentHostActiveClientService.js"; import { IAgentHostMcpServerSupportScope } from "./agentHostMcpServerSupportScope.js"; import { ISyncedCustomizationOrigin } from "./syncedCustomizationBundler.js"; export declare const IAgentHostActiveClientService: import("../../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IAgentHostActiveClientService { readonly _serviceBrand: undefined; /** Acquires (or shares) the refcounted customization scope for `sessionType` + `roots`. Never fails. */ acquireScope(sessionType: string, roots: readonly URI[]): IAgentCustomizationScope; /** * Acquires a shared MCP support scope for a Copilot CLI harness; `undefined` roots mean unknown applicability while an empty array means no workspace. * Returns `undefined` for harnesses whose MCP delivery is not assessed by the client. */ acquireMcpServerSupportScope(sessionType: string, roots: readonly URI[] | undefined): IAgentHostMcpServerSupportScope | undefined; /** The persisted customization sync provider for `sessionType`. */ getSyncProvider(sessionType: string): ICustomizationSyncProvider; /** Recovers provenance for a synced URI produced by any scope. */ getOrigin(syncedUri: URI): ISyncedCustomizationOrigin | undefined; areScopeRootsEqual(first: readonly URI[] | undefined, second: readonly URI[]): boolean; isBundledMcpServer(pluginUri: string, serverName: string): boolean; setSessionTools(sessionResource: URI, toolIds: readonly string[]): void; moveSessionTools(source: URI, target: URI): void; clearSessionTools(sessionResource: URI): void; acquireSessionTools(sessionResource: URI): IReference>; }