import { CancellationToken } from "../../../base/common/cancellation.js"; import { IDialogService } from "../../dialogs/common/dialogs.service.js"; import { RemoteAgentHostLocationPreference } from "@codingame/monaco-vscode-workbench-service-override/vscode/vs/platform/agentHost/common/remoteAgentHostLocationPreference"; /** * Id of the `Chat: Change Preferred Remote Agent Location` command, which * lets the user revisit the choice made in {@link promptRemoteAgentHostLocationPreference}. * * The command itself is registered in the sessions layer (which platform * code cannot import), so its id is declared here — the one common module * both layers can reach — and the sessions-layer registration should import * and reuse this constant instead of duplicating the literal. */ export declare const ChangeRemoteAgentHostLocationPreferenceCommandId = "workbench.action.sessions.changeRemoteAgentHostLocationPreference"; interface IRemoteAgentHostLocationOption { readonly preference: RemoteAgentHostLocationPreference; readonly label: string; readonly detail: string; } /** * Order the location options so the host's current preference, if any, is * offered first, and mark that option's detail with a localized "(Current)" * suffix. Ordering alone communicates nothing to screen readers, so the * marker (not position) is what actually conveys the saved preference. */ export declare function orderRemoteAgentHostLocationOptions(productName: string, currentPreference: RemoteAgentHostLocationPreference | undefined): IRemoteAgentHostLocationOption[]; /** * Prompt the user to choose where agents should run on `hostLabel` using the * standard two-choice custom dialog pattern. Returns the chosen preference, * or `undefined` if the user cancels. Does not persist the choice or affect * any running connection. * * `productName` (typically {@link IProductService.nameShort}) is substituted * into the option copy. * * `token`, when provided, is forwarded as the dialog's cancellation token so * a caller (e.g. an SSH connection cancelled from the main process) can * dismiss an open modal programmatically. */ export declare function promptRemoteAgentHostLocationPreference(dialogService: IDialogService, hostLabel: string, productName: string, currentPreference?: RemoteAgentHostLocationPreference, token?: CancellationToken): Promise; export {};