import type { CancellationToken } from "../../../base/common/cancellation.js"; import { Event } from "../../../base/common/event.js"; import { IReference } from "../../../base/common/lifecycle.js"; import { IObservable } from "../../../base/common/observable.js"; import { URI } from "../../../base/common/uri.js"; import type { IAgentCreateChatWorkspace, IAgentCreateSessionConfig, IAgentResolveSessionConfigParams, IAgentSessionConfigCompletionsParams, IAgentSessionMetadata, AuthenticateParams, AuthenticateResult } from "../common/agent.js"; import type { AgentHostDebugLogsArtifactKind, IAgentHostDebugLogsArtifact, IAgentHostDebugLogsChunk, IAgentHostInspectInfo, IAgentHostManagedSettingsDiagnostics, IAgentHostNetworkDiagnosticsInfo, IAgentHostNetworkFetchResult, IAgentHostSocketInfo } from "../common/agentService.js"; import { IAgentHostService } from "../common/agentService.service.js"; import type { AgentChatMoveDestination } from "../common/agentHostChatMove.js"; import type { IActiveSubscriptionInfo, IAgentSubscription } from "../common/state/agentSubscription.js"; import type { CompletionsParams, CompletionsResult, CreateTerminalParams, ResolveSessionConfigResult, SessionConfigCompletionsResult } from "../common/state/protocol/commands.js"; import type { InitializeResult } from "../common/state/protocol/common/commands.js"; import type { InvokeChangesetOperationParams, InvokeChangesetOperationResult } from "../common/state/protocol/channels-changeset/commands.js"; import type { FetchAutomationRunsParams, FetchAutomationRunsResult, ListAutomationTriggerDefinitionsParams, ListAutomationTriggerDefinitionsResult, RunAutomationParams, RunAutomationResult } from "../common/state/protocol/channels-automation/commands.js"; import type { ActionEnvelope, ChatAction, ClientAnnotationsAction, ClientAutomationAction, ClientAutomationRunAction, ClientChangesetAction, INotification, IRootConfigChangedAction, SessionAction, TerminalAction } from "../common/state/sessionActions.js"; import type { IRemoteWatchHandle } from "../common/agentHostFileSystemProvider.js"; import type { CreateResourceWatchParams, CreateResourceWatchResult, ResourceCopyParams, ResourceCopyResult, ResourceDeleteParams, ResourceDeleteResult, ResourceListResult, ResourceMkdirParams, ResourceMkdirResult, ResourceMoveParams, ResourceMoveResult, ResourceReadResult, ResourceResolveParams, ResourceResolveResult, ResourceWriteParams, ResourceWriteResult } from "../common/state/sessionProtocol.js"; import type { ComponentToState, RootState, StateComponents } from "../common/state/sessionState.js"; /** * Null implementation of {@link IAgentHostService} for browser contexts * where a local agent host process is not available. */ export declare class NullAgentHostService implements IAgentHostService { readonly _serviceBrand: undefined; readonly clientId = ""; readonly resourceUris: import("../common/agentHostUri.js").IAgentHostResourceUriMapper; readonly onAgentHostExit: Event; readonly onAgentHostStart: Event; readonly onDidNotification: Event; readonly onDidAction: Event; readonly onMcpNotification: Event; readonly authenticationPending: IObservable; setAuthenticationPending(_pending: boolean): void; startAgentHost(): void; readonly initializeResult: IObservable; get rootState(): IAgentSubscription; getSubscription(_kind: T, _resource: URI, _owner: string): IReference>; getSubscriptionUnmanaged(_kind: T, _resource: URI): IAgentSubscription | undefined; getInflightSessionCreate(_resource: URI): Promise | undefined; getActiveSubscriptions(): readonly IActiveSubscriptionInfo[]; dispatch(_channel: string, _action: SessionAction | ChatAction | TerminalAction | ClientChangesetAction | ClientAnnotationsAction | ClientAutomationAction | ClientAutomationRunAction | IRootConfigChangedAction): void; dispatchConfirmed(_channel: string, _subscription: IAgentSubscription, _action: SessionAction | ChatAction | TerminalAction | ClientChangesetAction | ClientAnnotationsAction | ClientAutomationAction | ClientAutomationRunAction | IRootConfigChangedAction, _token: CancellationToken): Promise; restartAgentHost(): Promise; authenticate(_params: AuthenticateParams): Promise; getNetworkDiagnosticsInfo(): Promise; getManagedSettingsDiagnostics(): Promise; diagnosticsFetch(_url: string): Promise; getSessionStateFile(_session: URI): Promise; collectDebugLogs(_session: URI | undefined, _kind: AgentHostDebugLogsArtifactKind, _chat?: URI): Promise; readDebugLogsChunk(_resource: URI, _position: number): Promise; listSessions(): Promise; createSession(_config?: IAgentCreateSessionConfig): Promise; removeSessionArtifact(_session: URI, _artifactId: string): Promise; stopBackgroundWork(_chat: URI, _id: string): Promise; importSession(_session: URI): Promise; moveSession(_session: URI, _destination: URI, _after: URI | undefined): Promise; moveChat(_chat: URI, _destination: AgentChatMoveDestination): Promise; createDetachedWorktree(_session: URI, _prompt: string): Promise<{ handle: string; worktree: URI; }>; claimDetachedWorktree(_handle: string): Promise; setDetachedWorktreeArchived(_handle: string, _archived: boolean): Promise; deleteDetachedWorktree(_handle: string): Promise; reconcileDetachedWorktrees(_scope: string, _activeHandles: readonly string[]): Promise; resolveSessionConfig(_params: IAgentResolveSessionConfigParams): Promise; sessionConfigCompletions(_params: IAgentSessionConfigCompletionsParams): Promise; completions(_params: CompletionsParams): Promise; listAutomationTriggerDefinitions(_params: ListAutomationTriggerDefinitionsParams): Promise; runAutomation(_params: RunAutomationParams): Promise; deleteAutomation(_resource: string, _deleteHistory: boolean, _legacySessions?: readonly URI[], _requestId?: string): Promise; acknowledgeAutomationDeletion(_requestId: string): Promise; fetchAutomationRuns(_params: FetchAutomationRunsParams): Promise; getCompletionTriggerCharacters(): Promise; startWebSocketServer(): Promise; getInspectInfo(_tryEnable: boolean): Promise; disposeSession(_session: URI): Promise; createChat(_session: URI, _chat: URI): Promise; setChatWorkspace(_chat: URI, _workspace: IAgentCreateChatWorkspace): Promise; disposeChat(_chat: URI): Promise; createTerminal(_params: CreateTerminalParams): Promise; disposeTerminal(_terminal: URI): Promise; invokeChangesetOperation(_params: InvokeChangesetOperationParams): Promise; handleMcpRequest(_channel: string, _method: string, _params: Record | undefined): Promise; resourceList(_uri: URI): Promise; resourceRead(_uri: URI): Promise; resourceWrite(_params: ResourceWriteParams): Promise; resourceCopy(_params: ResourceCopyParams): Promise; resourceDelete(_params: ResourceDeleteParams): Promise; resourceMove(_params: ResourceMoveParams): Promise; resourceResolve(_params: ResourceResolveParams): Promise; resourceMkdir(_params: ResourceMkdirParams): Promise; createResourceWatch(_params: CreateResourceWatchParams): Promise; watchResource(_params: CreateResourceWatchParams): Promise; }