import { NotificationType } from 'vscode-languageserver-protocol'; import { DocumentUri, TextDocument } from 'vscode-languageserver-textdocument'; import { FeatureState } from './feature_state/feature_state_management_types'; export { DidChangeThemeNotificationType } from '@gitlab-org/webview-theme'; export declare const TOKEN_CHECK_NOTIFICATION = "$/gitlab/token/check"; export declare const FEATURE_STATE_CHANGE = "$/gitlab/featureStateChange"; export type FeatureStateNotificationParams = FeatureState[]; export declare const FeatureStateChangeNotificationType: NotificationType; export interface TokenCheckNotificationParams { message?: string; } export declare const TokenCheckNotificationType: NotificationType; export type DidChangeDocumentInActiveEditorParams = TextDocument | DocumentUri; export declare const DidChangeDocumentInActiveEditor: NotificationType; export interface StreamWithId { /** unique stream ID */ id: string; } export interface StreamingCompletionResponse { /** stream ID taken from the request, all stream responses for one request will have the request's stream ID */ id: string; /** most up-to-date generated suggestion, each time LS receives a chunk from LLM, it adds it to this string -> the client doesn't have to join the stream */ completion?: string; done: boolean; } export declare const STREAMING_COMPLETION_RESPONSE_NOTIFICATION = "streamingCompletionResponse"; export declare const CANCEL_STREAMING_COMPLETION_NOTIFICATION = "cancelStreaming"; export declare const StreamingCompletionResponseNotificationType: NotificationType; export declare const CancelStreamingNotificationType: NotificationType; export declare const API_ERROR_NOTIFICATION = "$/gitlab/api/error"; export declare const API_RECOVERY_NOTIFICATION = "$/gitlab/api/recovered"; export declare const ApiErrorNotificationType: NotificationType; export declare const ApiRecoveryNotificationType: NotificationType;