export { ActionType, type ActionEnvelope, type ActionOrigin, type RootAgentsChangedAction, type RootActiveSessionsChangedAction, type SessionCreationFailedAction, type SessionChatAddedAction, type SessionChatRemovedAction, type SessionChatUpdatedAction, type SessionDefaultChatChangedAction, type ChatDeltaAction, type ChatErrorAction, type SessionReadyAction, type ChatReasoningAction, type ChatResponsePartAction, type ChatToolCallCompleteAction, type ChatToolCallConfirmedAction, type ChatToolCallApprovedAction, type ChatToolCallDeniedAction, type ChatToolCallDeltaAction, type ChatToolCallReadyAction, type ChatToolCallResultConfirmedAction, type ChatToolCallStartAction, type SessionTitleChangedAction, type ChatTurnCancelledAction, type ChatTurnCompleteAction, type ChatTurnStartedAction, type ChatUsageAction, type SessionServerToolsChangedAction, type SessionActiveClientSetAction, type SessionActiveClientRemovedAction, type SessionCustomizationsChangedAction, type SessionCustomizationToggledAction, type ChatPendingMessageSetAction, type ChatPendingMessageRemovedAction, type ChatQueuedMessagesReorderedAction, type ChatInputRequestedAction, type ChatInputCompletedAction, type ChatInputAnswerChangedAction, type SessionIsReadChangedAction, type SessionIsArchivedChangedAction, type ChatToolCallContentChangedAction, type ChatTruncatedAction, type ChangesetStatusChangedAction, type ChangesetFileSetAction, type ChangesetFileRemovedAction, type ChangesetContentChangedAction, type ChangesetOperationsChangedAction, type ChangesetClearedAction, type AnnotationsSetAction, type AnnotationsUpdatedAction, type AnnotationsRemovedAction, type AnnotationsEntrySetAction, type AnnotationsEntryRemovedAction, type ResourceWatchChangedAction, type StateAction, } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions"; export { AuthRequiredReason, type SessionAddedParams, type SessionRemovedParams, type SessionSummaryChangedParams, type ProgressParams, type AuthRequiredParams, } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/notifications"; /** * String discriminants for the protocol notification methods that previously * lived inside a `notification` wrapper. These values are the JSON-RPC method * names sent over the wire by a channels-era server; they are also the `type` * discriminant on {@link ProtocolNotification} variants. */ export declare const NotificationType: { readonly SessionAdded: "root/sessionAdded"; readonly SessionRemoved: "root/sessionRemoved"; readonly SessionSummaryChanged: "root/sessionSummaryChanged"; readonly Progress: "root/progress"; readonly AuthRequired: "auth/required"; }; export type NotificationType = typeof NotificationType[keyof typeof NotificationType]; import type { RootAgentsChangedAction, RootActiveSessionsChangedAction, ChatDeltaAction, ChatReasoningAction, ChatResponsePartAction, ChatToolCallApprovedAction, ChatToolCallCompleteAction, ChatToolCallConfirmedAction, ChatToolCallDeniedAction, ChatToolCallDeltaAction, ChatToolCallReadyAction, ChatToolCallResultConfirmedAction, ChatToolCallStartAction, SessionTitleChangedAction, ChatTurnCancelledAction, ChatTurnCompleteAction, ChatTurnStartedAction, ChatErrorAction, ChatUsageAction, ChatToolCallContentChangedAction, StateAction, ChatPendingMessageSetAction, ChatPendingMessageRemovedAction, ChatQueuedMessagesReorderedAction, SessionIsReadChangedAction, SessionIsArchivedChangedAction, RootConfigChangedAction } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions"; import type { SessionAddedParams, SessionRemovedParams, SessionSummaryChangedParams, ProgressParams, AuthRequiredParams } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/notifications"; import type { RootAction as IRootAction_, SessionAction as ISessionAction_, ChatAction as IChatAction_, ClientSessionAction as IClientSessionAction_, ServerSessionAction as IServerSessionAction_, ClientChatAction as IClientChatAction_, ServerChatAction as IServerChatAction_, TerminalAction as ITerminalAction_, ClientTerminalAction as IClientTerminalAction_, ChangesetAction as IChangesetAction_, AnnotationsAction as IAnnotationsAction_, ClientAnnotationsAction as IClientAnnotationsAction_ } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/action-origin.generated"; /** * Discriminated union of all server→client protocol notifications other than * the action envelope. Each variant carries its protocol `method` so callers * can switch on `type` the same way they did against the old `NotificationType` * enum. */ export type ProtocolNotification = ({ type: "root/sessionAdded"; } & SessionAddedParams) | ({ type: "root/sessionRemoved"; } & SessionRemovedParams) | ({ type: "root/sessionSummaryChanged"; } & SessionSummaryChangedParams) | ({ type: "root/progress"; } & ProgressParams) | ({ type: "auth/required"; } & AuthRequiredParams); export type RootAction = IRootAction_; export type SessionAction = ISessionAction_; export type ChatAction = IChatAction_; export type ClientSessionAction = IClientSessionAction_; export type ServerSessionAction = IServerSessionAction_; export type ClientChatAction = IClientChatAction_; export type ServerChatAction = IServerChatAction_; export type TerminalAction = ITerminalAction_; export type ClientTerminalAction = IClientTerminalAction_; export type ChangesetAction = IChangesetAction_; export type AnnotationsAction = IAnnotationsAction_; export type ClientAnnotationsAction = IClientAnnotationsAction_; export type IAgentsChangedAction = RootAgentsChangedAction; export type IActiveSessionsChangedAction = RootActiveSessionsChangedAction; export type IRootConfigChangedAction = RootConfigChangedAction; export type ITurnStartedAction = ChatTurnStartedAction; export type IDeltaAction = ChatDeltaAction; export type IResponsePartAction = ChatResponsePartAction; export type IToolCallStartAction = ChatToolCallStartAction; export type IToolCallDeltaAction = ChatToolCallDeltaAction; export type IToolCallReadyAction = ChatToolCallReadyAction; export type IToolCallApprovedAction = ChatToolCallApprovedAction; export type IToolCallDeniedAction = ChatToolCallDeniedAction; export type IToolCallConfirmedAction = ChatToolCallConfirmedAction; export type IToolCallCompleteAction = ChatToolCallCompleteAction; export type IToolCallResultConfirmedAction = ChatToolCallResultConfirmedAction; export type ITurnCompleteAction = ChatTurnCompleteAction; export type ITurnCancelledAction = ChatTurnCancelledAction; export type ITitleChangedAction = SessionTitleChangedAction; export type IUsageAction = ChatUsageAction; export type IReasoningAction = ChatReasoningAction; export type IErrorAction = ChatErrorAction; export type IToolCallContentChangedAction = ChatToolCallContentChangedAction; export type ICustomizationsChangedAction = import("@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationsChangedAction; export type ICustomizationToggledAction = import("@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationToggledAction; export type IPendingMessageSetAction = ChatPendingMessageSetAction; export type IPendingMessageRemovedAction = ChatPendingMessageRemovedAction; export type IQueuedMessagesReorderedAction = ChatQueuedMessagesReorderedAction; export type IIsReadChangedAction = SessionIsReadChangedAction; export type IIsArchivedChangedAction = SessionIsArchivedChangedAction; export type INotification = ProtocolNotification; export declare function isRootAction(action: StateAction): action is RootAction; export declare function isSessionAction(action: StateAction): action is SessionAction; export declare function isChatAction(action: StateAction): action is ChatAction; export declare function isTerminalAction(action: StateAction): action is TerminalAction; export declare function isChangesetAction(action: StateAction): action is ChangesetAction; export declare function isAnnotationsAction(action: StateAction): action is AnnotationsAction;