MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/ai_allyindian_com/node_modules/sarvamai/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;
}