import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Completion, CompletionSource, EditorOptions, ExperimentKey, Language, Metadata } from "../codeium_common_pb/codeium_common_pb.js"; /** * @generated from enum exa.language_server_pb.CodeiumState */ export declare enum CodeiumState { /** * @generated from enum value: CODEIUM_STATE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: CODEIUM_STATE_INACTIVE = 1; */ INACTIVE = 1, /** * @generated from enum value: CODEIUM_STATE_PROCESSING = 2; */ PROCESSING = 2, /** * @generated from enum value: CODEIUM_STATE_SUCCESS = 3; */ SUCCESS = 3, /** * @generated from enum value: CODEIUM_STATE_WARNING = 4; */ WARNING = 4, /** * @generated from enum value: CODEIUM_STATE_ERROR = 5; */ ERROR = 5 } /** * @generated from enum exa.language_server_pb.LineType */ export declare enum LineType { /** * @generated from enum value: LINE_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: LINE_TYPE_SINGLE = 1; */ SINGLE = 1, /** * @generated from enum value: LINE_TYPE_MULTI = 2; */ MULTI = 2 } /** * @generated from enum exa.language_server_pb.CompletionPartType */ export declare enum CompletionPartType { /** * @generated from enum value: COMPLETION_PART_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Single-line completion parts that appear within an existing line of text. * * @generated from enum value: COMPLETION_PART_TYPE_INLINE = 1; */ INLINE = 1, /** * Possibly multi-line completion parts that appear below an existing line of text. * * @generated from enum value: COMPLETION_PART_TYPE_BLOCK = 2; */ BLOCK = 2, /** * Like COMPLETION_PART_TYPE_INLINE, but overwrites the existing text. * * @generated from enum value: COMPLETION_PART_TYPE_INLINE_MASK = 3; */ INLINE_MASK = 3 } /** * @generated from message exa.language_server_pb.MultilineConfig */ export declare class MultilineConfig extends Message { /** * Multiline model threshold. 0-1, higher = more single line, lower = more multiline, * 0.0 = only_multiline, default is 0.5 * * @generated from field: float threshold = 1; */ threshold: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.MultilineConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MultilineConfig; static fromJson(jsonValue: JsonValue, options?: Partial): MultilineConfig; static fromJsonString(jsonString: string, options?: Partial): MultilineConfig; static equals(a: MultilineConfig | PlainMessage | undefined, b: MultilineConfig | PlainMessage | undefined): boolean; } /** * Next ID: 9, Previous field: disable_cache. * * @generated from message exa.language_server_pb.GetCompletionsRequest */ export declare class GetCompletionsRequest extends Message { /** * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; */ metadata?: Metadata; /** * @generated from field: exa.language_server_pb.Document document = 2; */ document?: Document; /** * @generated from field: exa.codeium_common_pb.EditorOptions editor_options = 3; */ editorOptions?: EditorOptions; /** * @generated from field: repeated exa.language_server_pb.Document other_documents = 5; */ otherDocuments: Document[]; /** * @generated from field: exa.language_server_pb.ExperimentConfig experiment_config = 7; */ experimentConfig?: ExperimentConfig; /** * @generated from field: string model_name = 10; */ modelName: string; /** * @generated from field: exa.language_server_pb.MultilineConfig multiline_config = 13; */ multilineConfig?: MultilineConfig; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.GetCompletionsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetCompletionsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetCompletionsRequest; static fromJsonString(jsonString: string, options?: Partial): GetCompletionsRequest; static equals(a: GetCompletionsRequest | PlainMessage | undefined, b: GetCompletionsRequest | PlainMessage | undefined): boolean; } /** * Next ID: 5, Previous field: latency_info. * * @generated from message exa.language_server_pb.GetCompletionsResponse */ export declare class GetCompletionsResponse extends Message { /** * @generated from field: exa.language_server_pb.State state = 1; */ state?: State; /** * @generated from field: repeated exa.language_server_pb.CompletionItem completion_items = 2; */ completionItems: CompletionItem[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.GetCompletionsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetCompletionsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetCompletionsResponse; static fromJsonString(jsonString: string, options?: Partial): GetCompletionsResponse; static equals(a: GetCompletionsResponse | PlainMessage | undefined, b: GetCompletionsResponse | PlainMessage | undefined): boolean; } /** * Next ID: 3, Previous field: completion_id. * * @generated from message exa.language_server_pb.AcceptCompletionRequest */ export declare class AcceptCompletionRequest extends Message { /** * @generated from field: exa.codeium_common_pb.Metadata metadata = 1; */ metadata?: Metadata; /** * @generated from field: string completion_id = 2; */ completionId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.AcceptCompletionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AcceptCompletionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): AcceptCompletionRequest; static fromJsonString(jsonString: string, options?: Partial): AcceptCompletionRequest; static equals(a: AcceptCompletionRequest | PlainMessage | undefined, b: AcceptCompletionRequest | PlainMessage | undefined): boolean; } /** * Next ID: 1, Previous field: N/A. * * @generated from message exa.language_server_pb.AcceptCompletionResponse */ export declare class AcceptCompletionResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.AcceptCompletionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AcceptCompletionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): AcceptCompletionResponse; static fromJsonString(jsonString: string, options?: Partial): AcceptCompletionResponse; static equals(a: AcceptCompletionResponse | PlainMessage | undefined, b: AcceptCompletionResponse | PlainMessage | undefined): boolean; } /** * Next ID: 1, Previous field: N/A. * * @generated from message exa.language_server_pb.GetAuthTokenRequest */ export declare class GetAuthTokenRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.GetAuthTokenRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthTokenRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthTokenRequest; static fromJsonString(jsonString: string, options?: Partial): GetAuthTokenRequest; static equals(a: GetAuthTokenRequest | PlainMessage | undefined, b: GetAuthTokenRequest | PlainMessage | undefined): boolean; } /** * Next ID: 3, Previous field: uuid. * * @generated from message exa.language_server_pb.GetAuthTokenResponse */ export declare class GetAuthTokenResponse extends Message { /** * @generated from field: string auth_token = 1; */ authToken: string; /** * @generated from field: string uuid = 2; */ uuid: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.GetAuthTokenResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthTokenResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthTokenResponse; static fromJsonString(jsonString: string, options?: Partial): GetAuthTokenResponse; static equals(a: GetAuthTokenResponse | PlainMessage | undefined, b: GetAuthTokenResponse | PlainMessage | undefined): boolean; } /** * @generated from message exa.language_server_pb.DocumentPosition */ export declare class DocumentPosition extends Message { /** * 0-indexed. Measured in UTF-8 bytes. * * @generated from field: uint64 row = 1; */ row: bigint; /** * 0-indexed. Measured in UTF-8 bytes. * * @generated from field: uint64 col = 2; */ col: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.DocumentPosition"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DocumentPosition; static fromJson(jsonValue: JsonValue, options?: Partial): DocumentPosition; static fromJsonString(jsonString: string, options?: Partial): DocumentPosition; static equals(a: DocumentPosition | PlainMessage | undefined, b: DocumentPosition | PlainMessage | undefined): boolean; } /** * Next ID: 9, Previous field: cursor_position. * * @generated from message exa.language_server_pb.Document */ export declare class Document extends Message { /** * @generated from field: string absolute_path = 1; */ absolutePath: string; /** * Path relative to the root of the workspace. * * @generated from field: string relative_path = 2; */ relativePath: string; /** * @generated from field: string text = 3; */ text: string; /** * Language ID provided by the editor. * * @generated from field: string editor_language = 4; */ editorLanguage: string; /** * Language enum standardized across editors. * * @generated from field: exa.codeium_common_pb.Language language = 5; */ language: Language; /** * Measured in number of UTF-8 bytes. * * @generated from field: uint64 cursor_offset = 6; */ cursorOffset: bigint; /** * May be present instead of cursor_offset. * * @generated from field: exa.language_server_pb.DocumentPosition cursor_position = 8; */ cursorPosition?: DocumentPosition; /** * \n or \r\n, if known. * * @generated from field: string line_ending = 7; */ lineEnding: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.Document"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Document; static fromJson(jsonValue: JsonValue, options?: Partial): Document; static fromJsonString(jsonString: string, options?: Partial): Document; static equals(a: Document | PlainMessage | undefined, b: Document | PlainMessage | undefined): boolean; } /** * @generated from message exa.language_server_pb.ExperimentConfig */ export declare class ExperimentConfig extends Message { /** * @generated from field: repeated exa.codeium_common_pb.ExperimentKey force_enable_experiments = 1; */ forceEnableExperiments: ExperimentKey[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.ExperimentConfig"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExperimentConfig; static fromJson(jsonValue: JsonValue, options?: Partial): ExperimentConfig; static fromJsonString(jsonString: string, options?: Partial): ExperimentConfig; static equals(a: ExperimentConfig | PlainMessage | undefined, b: ExperimentConfig | PlainMessage | undefined): boolean; } /** * Next ID: 3, Previous field: message. * * @generated from message exa.language_server_pb.State */ export declare class State extends Message { /** * @generated from field: exa.language_server_pb.CodeiumState state = 1; */ state: CodeiumState; /** * @generated from field: string message = 2; */ message: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.State"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): State; static fromJson(jsonValue: JsonValue, options?: Partial): State; static fromJsonString(jsonString: string, options?: Partial): State; static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean; } /** * Next ID: 5, Previous field: end_position. * * @generated from message exa.language_server_pb.Range */ export declare class Range extends Message { /** * @generated from field: uint64 start_offset = 1; */ startOffset: bigint; /** * @generated from field: uint64 end_offset = 2; */ endOffset: bigint; /** * @generated from field: exa.language_server_pb.DocumentPosition start_position = 3; */ startPosition?: DocumentPosition; /** * @generated from field: exa.language_server_pb.DocumentPosition end_position = 4; */ endPosition?: DocumentPosition; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.Range"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Range; static fromJson(jsonValue: JsonValue, options?: Partial): Range; static fromJsonString(jsonString: string, options?: Partial): Range; static equals(a: Range | PlainMessage | undefined, b: Range | PlainMessage | undefined): boolean; } /** * @generated from message exa.language_server_pb.Suffix */ export declare class Suffix extends Message { /** * Text to insert after the cursor when accepting the completion. * * @generated from field: string text = 1; */ text: string; /** * Cursor position delta (as signed offset) from the end of the inserted * completion (including the suffix). * * @generated from field: int64 delta_cursor_offset = 2; */ deltaCursorOffset: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.Suffix"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Suffix; static fromJson(jsonValue: JsonValue, options?: Partial): Suffix; static fromJsonString(jsonString: string, options?: Partial): Suffix; static equals(a: Suffix | PlainMessage | undefined, b: Suffix | PlainMessage | undefined): boolean; } /** * Represents a contiguous part of the completion text that is not * already in the document. * Next ID: 4, Previous field: prefix. * * @generated from message exa.language_server_pb.CompletionPart */ export declare class CompletionPart extends Message { /** * @generated from field: string text = 1; */ text: string; /** * Offset in the original document where the part starts. For block * parts, this is always the end of the line before the block. * * @generated from field: uint64 offset = 2; */ offset: bigint; /** * @generated from field: exa.language_server_pb.CompletionPartType type = 3; */ type: CompletionPartType; /** * The section of the original line that came before this part. Only valid for * COMPLETION_PART_TYPE_INLINE. * * @generated from field: string prefix = 4; */ prefix: string; /** * In the case of COMPLETION_PART_TYPE_BLOCK, represents the line it is below. * * @generated from field: uint64 line = 5; */ line: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.CompletionPart"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CompletionPart; static fromJson(jsonValue: JsonValue, options?: Partial): CompletionPart; static fromJsonString(jsonString: string, options?: Partial): CompletionPart; static equals(a: CompletionPart | PlainMessage | undefined, b: CompletionPart | PlainMessage | undefined): boolean; } /** * Next ID: 9, Previous field: completion_parts. * * @generated from message exa.language_server_pb.CompletionItem */ export declare class CompletionItem extends Message { /** * @generated from field: exa.codeium_common_pb.Completion completion = 1; */ completion?: Completion; /** * @generated from field: exa.language_server_pb.Suffix suffix = 5; */ suffix?: Suffix; /** * @generated from field: exa.language_server_pb.Range range = 2; */ range?: Range; /** * @generated from field: exa.codeium_common_pb.CompletionSource source = 3; */ source: CompletionSource; /** * @generated from field: repeated exa.language_server_pb.CompletionPart completion_parts = 8; */ completionParts: CompletionPart[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "exa.language_server_pb.CompletionItem"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CompletionItem; static fromJson(jsonValue: JsonValue, options?: Partial): CompletionItem; static fromJsonString(jsonString: string, options?: Partial): CompletionItem; static equals(a: CompletionItem | PlainMessage | undefined, b: CompletionItem | PlainMessage | undefined): boolean; } //# sourceMappingURL=language_server_pb.d.ts.map