import { type StateAction } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/actions"; import { type ProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications"; /** * The current protocol version that new code speaks. * * Formatted as a [SemVer](https://semver.org) `MAJOR.MINOR.PATCH` string. */ export declare const PROTOCOL_VERSION = "0.1.0"; /** * Compares two `MAJOR.MINOR.PATCH` SemVer strings. * * Returns a negative number if `a < b`, zero if `a === b`, and a positive * number if `a > b`. */ export declare function compareProtocolVersions(a: string, b: string): number; /** * Maps every action type to the protocol version that introduced it. * Adding a new action to `StateAction` without adding it here is a compile error. * * Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`). */ export declare const ACTION_INTRODUCED_IN: { readonly [K in StateAction["type"]]: string; }; /** * Returns whether the given action type is known to the specified protocol version. */ export declare function isActionKnownToVersion(action: StateAction, clientVersion: string): boolean; /** * Maps every notification type to the protocol version that introduced it. * Adding a new notification to `ProtocolNotification` without adding it here * is a compile error. * * Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`). */ export declare const NOTIFICATION_INTRODUCED_IN: { readonly [K in ProtocolNotification["type"]]: string; }; /** * Returns whether the given notification type is known to the specified protocol version. */ export declare function isNotificationKnownToVersion(notification: ProtocolNotification, clientVersion: string): boolean;