import { OperatingSystem } from "../../../../base/common/platform.js"; import { IEnvironmentVariableCollection, IMergedEnvironmentVariableCollection } from "../../../../platform/terminal/common/environmentVariable.js"; import { Event } from "../../../../sessions/sessions.web.main.internal.js"; export declare const IEnvironmentVariableService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Tracks and persists environment variable collections as defined by extensions. */ export interface IEnvironmentVariableService { readonly _serviceBrand: undefined; /** * Gets a single collection constructed by merging all environment variable collections into * one. */ readonly collections: ReadonlyMap; /** * Gets a single collection constructed by merging all environment variable collections into * one. */ readonly mergedCollection: IMergedEnvironmentVariableCollection; /** * Gets a collection suitable for a terminal running on the provided authority. PATH * contributions are restricted to the extension host that produced them. */ getMergedCollection(remoteAuthority: string | null | undefined, os: OperatingSystem): IMergedEnvironmentVariableCollection; /** * An event that is fired when an extension's environment variable collection changes, the event * provides the new merged collection. */ readonly onDidChangeCollections: Event; /** * Sets an extension's environment variable collection. */ set(extensionIdentifier: string, collection: IEnvironmentVariableCollection): void; /** * Deletes an extension's environment variable collection. */ delete(extensionIdentifier: string): void; }