import type { Command } from "commander"; import type { CliContainer } from "../container.js"; import type { ProviderService } from "../service-registry.js"; import type { ConfiguredServiceMetadata } from "../../services/config.js"; import { type CommandFlags, type ExecutionResources } from "./shared.js"; export interface UnconfigureCommandOptions { configName?: string; /** Set by callers that already confirmed a wider blast radius, e.g. `logout`. */ alreadyConfirmed?: boolean; } export declare function registerUnconfigureCommand(program: Command, container: CliContainer): Command; export declare function executeUnconfigure(program: Command, container: CliContainer, service: string, options: UnconfigureCommandOptions): Promise; export interface UnconfigureAgentInput { container: CliContainer; adapter: ProviderService; flags: CommandFlags; resources: ExecutionResources; metadata: ConfiguredServiceMetadata; } /** * Removes one agent's configuration without rendering any panel of its own, so * callers that unconfigure several agents (e.g. `logout`) can report the whole * batch inside a single panel. */ export declare function unconfigureAgent(input: UnconfigureAgentInput): Promise; export declare function formatUnconfigureMessages(adapter: { label: string; configurationLabel?: string; }, unconfigured: boolean, files?: readonly string[]): { success: string; dry: string; };