import { IDisposable } from "../../../../../base/common/lifecycle.js"; import { RemoteAgentHostConnectionCustomizationFactory, IRemoteAgentHostConnectionCustomization } from "./remoteAgentHostConnectionCustomization.js"; export declare const IRemoteAgentHostConnectionCustomizationService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Registry that lets a host-kind contribution (e.g. cloud sandbox) inject per-connection behavior * into the generic remote-agent-host contribution, keyed by an address matcher. Inversion of * control: the generic contribution *consults* this registry, the specific contribution *populates* * it — so no host-specific dependency leaks into the shared code path. */ export interface IRemoteAgentHostConnectionCustomizationService { readonly _serviceBrand: undefined; /** * Register a customization for every connection address matched by {@link match}. The * {@link factory} is invoked per address so the customization can close over address-derived * state (e.g. the sandbox environment id). */ register(match: (address: string) => boolean, factory: RemoteAgentHostConnectionCustomizationFactory): IDisposable; /** The customization for a connection address, or `undefined` when none is registered. */ get(address: string): IRemoteAgentHostConnectionCustomization | undefined; }