import type * as SarvamAI from "../../../index.js"; import type { SpeechToTextTranslateJobClient } from "./Client.js"; export declare class SpeechToTextTranslateJobInstance { private _jobId; private _client; constructor(jobId: string, client: SpeechToTextTranslateJobClient); /** * Returns the job ID associated with this job instance. */ get jobId(): string; /** * Upload input audio files for the speech-to-text-translate job. * * @param filePaths - Array of full paths to local audio files * @param timeoutInSeconds - The maximum time to wait for the upload to complete (default: 60) * @returns Promise - True if all files are uploaded successfully */ uploadFiles(filePaths: string[], _timeoutInSeconds?: number): Promise; /** * Polls job status until it completes or fails. * * @param pollIntervalSeconds - Time in seconds between polling attempts (default: 5) * @param timeoutSeconds - Maximum time to wait for completion in seconds (default: 600) * @returns Promise - Final job status * @throws Error if the job does not complete within the given timeout */ waitUntilComplete(pollIntervalSeconds?: number, timeoutSeconds?: number): Promise; /** * Get the mapping of input files to their corresponding output files. * * @returns Promise> - List of mappings */ getOutputMappings(): Promise>; /** * Get detailed results for each file in the batch job. * * @returns Promise<{successful: Array, failed: Array}> * Object with 'successful' and 'failed' keys, each containing a list of file details. * Each file detail includes: * - file_name: Name of the input file * - status: Status of processing ('Success' or other states) * - error_message: Error message if failed (undefined if successful) * - output_file: Name of output file if successful (undefined if failed) */ getFileResults(): Promise<{ successful: Array<{ file_name: string; status: string; error_message?: string; output_file?: string; }>; failed: Array<{ file_name: string; status: string; error_message?: string; output_file?: string; }>; }>; /** * Download output files to the specified directory. * * @param outputDir - Local directory where outputs will be saved * @returns Promise - True if all files downloaded successfully * @throws Error if a file fails to download */ downloadOutputs(outputDir: string): Promise; /** * Retrieve the current status of the job. */ getStatus(): Promise; /** * Start the speech-to-text-translate job processing. */ start(): Promise; /** * Check if the job exists in the system. */ exists(): Promise; /** * Check if the job is either completed or failed. */ isComplete(): Promise; /** * Check if the job completed successfully. */ isSuccessful(): Promise; /** * Check if the job has failed. */ isFailed(): Promise; private getMimeType; }