import { implToBase64, implToBuffer, implToDisk, type Audio } from '../../../implementation/index.js'; import { type Client } from '../../../services/client/Client.js'; import { type TtsResult } from '../../ttsResult/TtsResult.js'; import type { TtsModel } from '../TtsModel.js'; import { type TtsInferenceStatusDoneSchema } from '../ttsModel.schema.js'; export declare class TtsAudioFile implements Audio { constructor(client: Client, data: TtsInferenceStatusDoneSchema); readonly client: Client; readonly resourceUrl: string; /** * The URL to the page of this audio file in the browser. */ readonly webUrl: string; readonly token: string; readonly status: string; readonly extraStatusDescription: string | null; readonly attemptCount: number; readonly resultToken: string; readonly publicBucketWavAudioPath: string; readonly modelToken: string; readonly ttsModelType: string; readonly title: string; readonly rawInferenceText: string; readonly createdAt: Date; readonly updatedAt: Date; /** * Fetch the TTS model used to generate this audio file. * * @returns The TTS model used to generate this audio file. Undefined if the model could not be fetched. */ fetchModel(): Promise; /** * Fetch the audio file as a buffer. */ toBuffer: typeof implToBuffer; /** * Convert the audio file to a base64 string. */ toBase64: typeof implToBase64; /** * Write the audio file to disk. */ toDisk: typeof implToDisk; /** * Fetch more details about this audio file. */ fetchFullResult(): Promise; }