import { Disposable } from "../../../../../base/common/lifecycle.js"; import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { type IObservable } from "../../../../../base/common/observable.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js"; import type { AutomationTarget, IAutomationDescriptor, IAutomationRun } from "../../../../../workbench/contrib/chat/common/automations/automation.js"; import { type AutomationCatalogueState, type AutomationMutationGuard, type AutomationUnavailableReasonCode, type IAutomationCustomizationChoice, type IAutomationRunRequestResult, type ICreateAutomationOptions, type IDeleteAutomationOptions, type IGuardedAutomationUpdateResult, type IUpdateAutomationOptions } from "../../../../../workbench/contrib/chat/common/automations/automationService.js"; import type { ISessionsProviderAutomations } from "../../../../services/sessions/common/sessionsProvider.js"; import { type IAgentHostAutomationBoundaryMapper, type IAgentHostAutomationConnection } from "./agentHostAutomationStore.js"; /** * Stable Automation facade for one Sessions provider across connection, capability, and enablement changes. * Owns a replaceable connection-scoped projection and reports unavailability without a fallback executor. */ export declare class ReconnectableAgentHostAutomationStore extends Disposable implements ISessionsProviderAutomations { private readonly providerId; private readonly boundaryMapper; private readonly instantiationService; private readonly configurationService; private readonly currentStore; private readonly connectionBinding; private readonly runsForCache; private readonly configurationChanged; private readonly connectionState; readonly automations: import("../../../../../base/common/observable.js").IObservableWithChange; readonly runs: import("../../../../../base/common/observable.js").IObservableWithChange; readonly catalogueState: IObservable; readonly canCreateAutomation: import("../../../../../base/common/observable.js").IObservableWithChange; readonly unavailableReasonCode: import("../../../../../base/common/observable.js").IObservableWithChange; readonly unavailableReason: import("../../../../../base/common/observable.js").IObservableWithChange; constructor(providerId: string, boundaryMapper: IAgentHostAutomationBoundaryMapper | undefined, instantiationService: IInstantiationService, configurationService: IConfigurationService); /** Rebinds to the connection and exposes a projection only while compatible Automation support is available. */ setConnection(connection: IAgentHostAutomationConnection): void; /** Disposes client-side projections and observations without changing host definitions or runs. */ clearConnection(): void; getAutomation(id: string): IAutomationDescriptor | undefined; getCustomizationChoices(target: AutomationTarget, existingId: string | undefined, token: CancellationToken): Promise; canRunAutomation(id: string): boolean; canUpdateAutomation(id: string): boolean; canDeleteAutomation(id: string): boolean; supportsDeleteHistoryChoice(id: string): boolean; getAutomationHistoryName(id: string): string | undefined; getAutomationHistoryState(id: string): import("../../../../../workbench/contrib/chat/common/automations/automationService.js").AutomationHistoryState | undefined; deleteAutomationHistory(id: string): Promise; canDeleteAutomationHistory(id: string): boolean; runsFor(automationId: string): IObservable; createAutomation(options: ICreateAutomationOptions, mutationGuard?: AutomationMutationGuard): Promise; updateAutomation(id: string, patch: IUpdateAutomationOptions): Promise; updateAutomationIfUnchanged(id: string, patch: IUpdateAutomationOptions, expected: IAutomationDescriptor, mutationGuard?: AutomationMutationGuard): Promise; deleteAutomation(id: string, mutationGuard?: AutomationMutationGuard, options?: IDeleteAutomationOptions): Promise; runAutomation(automationId: string, token?: CancellationToken): Promise; getActiveRunFor(automationId: string): IAutomationRun | undefined; private requireStore; }