/** * Daytona Toolbox API * Daytona Toolbox API * * The version of the OpenAPI document: v0.0.0-dev * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { CompletionList } from '../models'; import type { LspCompletionParams } from '../models'; import type { LspDocumentRequest } from '../models'; import type { LspServerRequest } from '../models'; import type { LspSymbol } from '../models'; /** * LspApi - axios parameter creator * @export */ export declare const LspApiAxiosParamCreator: (configuration?: Configuration) => { /** * Get code completion suggestions from the LSP server * @summary Get code completions * @param {LspCompletionParams} request Completion request * @param {*} [options] Override http request option. * @throws {RequiredError} */ completions: (request: LspCompletionParams, options?: RawAxiosRequestConfig) => Promise; /** * Notify the LSP server that a document has been closed * @summary Notify document closed * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didClose: (request: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise; /** * Notify the LSP server that a document has been opened * @summary Notify document opened * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didOpen: (request: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise; /** * Get symbols (functions, classes, etc.) from a document * @summary Get document symbols * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {string} uri Document URI * @param {*} [options] Override http request option. * @throws {RequiredError} */ documentSymbols: (languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig) => Promise; /** * Start a Language Server Protocol server for the specified language * @summary Start LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ start: (request: LspServerRequest, options?: RawAxiosRequestConfig) => Promise; /** * Stop a Language Server Protocol server * @summary Stop LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ stop: (request: LspServerRequest, options?: RawAxiosRequestConfig) => Promise; /** * Search for symbols across the entire workspace * @summary Get workspace symbols * @param {string} query Search query * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {*} [options] Override http request option. * @throws {RequiredError} */ workspaceSymbols: (query: string, languageId: string, pathToProject: string, options?: RawAxiosRequestConfig) => Promise; }; /** * LspApi - functional programming interface * @export */ export declare const LspApiFp: (configuration?: Configuration) => { /** * Get code completion suggestions from the LSP server * @summary Get code completions * @param {LspCompletionParams} request Completion request * @param {*} [options] Override http request option. * @throws {RequiredError} */ completions(request: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Notify the LSP server that a document has been closed * @summary Notify document closed * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didClose(request: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Notify the LSP server that a document has been opened * @summary Notify document opened * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didOpen(request: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get symbols (functions, classes, etc.) from a document * @summary Get document symbols * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {string} uri Document URI * @param {*} [options] Override http request option. * @throws {RequiredError} */ documentSymbols(languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Start a Language Server Protocol server for the specified language * @summary Start LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ start(request: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Stop a Language Server Protocol server * @summary Stop LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ stop(request: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Search for symbols across the entire workspace * @summary Get workspace symbols * @param {string} query Search query * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {*} [options] Override http request option. * @throws {RequiredError} */ workspaceSymbols(query: string, languageId: string, pathToProject: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * LspApi - factory interface * @export */ export declare const LspApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Get code completion suggestions from the LSP server * @summary Get code completions * @param {LspCompletionParams} request Completion request * @param {*} [options] Override http request option. * @throws {RequiredError} */ completions(request: LspCompletionParams, options?: RawAxiosRequestConfig): AxiosPromise; /** * Notify the LSP server that a document has been closed * @summary Notify document closed * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didClose(request: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Notify the LSP server that a document has been opened * @summary Notify document opened * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} */ didOpen(request: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get symbols (functions, classes, etc.) from a document * @summary Get document symbols * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {string} uri Document URI * @param {*} [options] Override http request option. * @throws {RequiredError} */ documentSymbols(languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Start a Language Server Protocol server for the specified language * @summary Start LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ start(request: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Stop a Language Server Protocol server * @summary Stop LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} */ stop(request: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Search for symbols across the entire workspace * @summary Get workspace symbols * @param {string} query Search query * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {*} [options] Override http request option. * @throws {RequiredError} */ workspaceSymbols(query: string, languageId: string, pathToProject: string, options?: RawAxiosRequestConfig): AxiosPromise>; }; /** * LspApi - object-oriented interface * @export * @class LspApi * @extends {BaseAPI} */ export declare class LspApi extends BaseAPI { /** * Get code completion suggestions from the LSP server * @summary Get code completions * @param {LspCompletionParams} request Completion request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ completions(request: LspCompletionParams, options?: RawAxiosRequestConfig): Promise>; /** * Notify the LSP server that a document has been closed * @summary Notify document closed * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ didClose(request: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise>; /** * Notify the LSP server that a document has been opened * @summary Notify document opened * @param {LspDocumentRequest} request Document request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ didOpen(request: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise>; /** * Get symbols (functions, classes, etc.) from a document * @summary Get document symbols * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {string} uri Document URI * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ documentSymbols(languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise>; /** * Start a Language Server Protocol server for the specified language * @summary Start LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ start(request: LspServerRequest, options?: RawAxiosRequestConfig): Promise>; /** * Stop a Language Server Protocol server * @summary Stop LSP server * @param {LspServerRequest} request LSP server request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ stop(request: LspServerRequest, options?: RawAxiosRequestConfig): Promise>; /** * Search for symbols across the entire workspace * @summary Get workspace symbols * @param {string} query Search query * @param {string} languageId Language ID (e.g., python, typescript) * @param {string} pathToProject Path to project * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LspApi */ workspaceSymbols(query: string, languageId: string, pathToProject: string, options?: RawAxiosRequestConfig): Promise>; }