File: /home/cafsindia/ai_allyindian_com/node_modules/sarvamai/dist/Client.d.ts
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as environments from "./environments";
import * as core from "./core";
import { Text } from "./api/resources/text/client/Client";
import { SpeechToText } from "./api/resources/speechToText/client/Client";
import { TextToSpeech } from "./api/resources/textToSpeech/client/Client";
import { Chat } from "./api/resources/chat/client/Client";
export declare namespace SarvamAIClient {
interface Options {
environment?: core.Supplier<environments.SarvamAIEnvironment | string>;
/** Specify a custom URL to connect the client to. */
baseUrl?: core.Supplier<string>;
apiSubscriptionKey?: core.Supplier<string>;
}
interface RequestOptions {
/** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
/** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Additional headers to include in the request. */
headers?: Record<string, string>;
}
}
export declare class SarvamAIClient {
protected readonly _options: SarvamAIClient.Options;
protected _text: Text | undefined;
protected _speechToText: SpeechToText | undefined;
protected _textToSpeech: TextToSpeech | undefined;
protected _chat: Chat | undefined;
constructor(_options?: SarvamAIClient.Options);
get text(): Text;
get speechToText(): SpeechToText;
get textToSpeech(): TextToSpeech;
get chat(): Chat;
}