import type { ServerModelConfiguration } from '../../models/index'; /** * RestClient is a thin HTTP client that interacts with the Sourcegraph backend. * * Where possible, this client uses the same data for how things get hooked into * the GraphQL client. e.g. HTTP requests made by this client will honor the * `graphql` package's `setUserAgent` and `addCustomUserAgent` methods. * * NOTE: This is semi-experimental. @chrsmith is a fan of how easy REST APIs can * be versioned/evolve compared to GraphQL. But if there is much pushback, we'll * just expose the same endpoint using the backend's GraphQL API. */ export declare class RestClient { private endpointUrl; private accessToken; private customHeaders; /** * @param endpointUrl URL to the sourcegraph instance, e.g. "https://sourcegraph.acme.com". * @param accessToken User access token to contact the sourcegraph instance. * @param customHeaders Custom headers (primary is used by Cody Web case when Sourcegraph client * providers set of custom headers to make sure that auth flow will work properly */ constructor(endpointUrl: string, accessToken: string | undefined, customHeaders: Record); private getRequest; /** * getAvailableModels fetches the LLM models that the Sourcegraph instance supports. * * IMPORTANT: The list may include models that the current Cody client does not know * how to operate. */ getAvailableModels(): Promise; } //# sourceMappingURL=client.d.ts.map