import { IDialogService } from "../../../../platform/dialogs/common/dialogs.service.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import { ChatPermissionLevel } from "./constants.js"; /** * Clears the in-process suppression set so that previously accepted (but not * persistently dismissed) warnings will be shown again within this session. * Call this alongside removing the persisted storage keys when implementing a * "reset" developer action. */ export declare function resetShownWarnings(): void; export declare function hasShownElevatedWarning(level: ChatPermissionLevel, storageService: IStorageService): boolean; /** * If `level` is an elevated permission level (Bypass Approvals or Autopilot) * that hasn't already been confirmed in this session or persistently * dismissed, show the corresponding warning dialog. Returns: * * - `true` if the level is not elevated, has already been confirmed, or the * user accepts the dialog. In these cases the caller should proceed to apply * the level. * - `false` if the user cancels the dialog. The caller should abort the * permission change. * * When the user ticks "Don't show again", the choice is persisted in * `StorageScope.PROFILE`, which is shared across the workbench and Agents * windows so a dismissal in one applies to the other. * * `options.defaultSettingKey` controls which "make this the default" setting * the dialog links to — local chat uses `chat.permissions.default` (the * default), while agent-host sessions pass * `chat.defaultConfiguration`. */ export declare function maybeConfirmElevatedPermissionLevel(level: ChatPermissionLevel, dialogService: IDialogService, storageService: IStorageService, options?: { readonly defaultSettingKey?: string; readonly levelLabel?: string; }): Promise;