import { implFetchUser, implToBase64, implToBuffer, implToDisk, type Audio, type User } from '../../../implementation/index.js'; import type Client from '../../../index.js'; import { type TtsResult } from '../../ttsResult/TtsResult.js'; import { type UserTtsSchema } from './userAudioFile.schema.js'; export declare class UserAudioFile implements Audio, User { /** * @param client The main client. * @param data The raw user audio file data from the FakeYou API. */ constructor(client: Client, data: UserTtsSchema); readonly client: Client; readonly resourceUrl: string; /** * The URL to view this audio file in a browser. */ readonly webUrl: string; readonly ttsResultToken: string; readonly ttsModelToken: string; readonly ttsModelTitle: string; readonly rawInferenceText: string; readonly publicBucketWavAudioPath: string; readonly creatorUserToken: string; readonly creatorUsername: string; /** * @alias creatorUsername */ readonly username: string; readonly creatorDisplayName: string; readonly creatorResultId: number; readonly fileSizeBytes: number; readonly durationMillis: number; readonly visibility: string; readonly createdAt: Date; readonly updatedAt: Date; /** * Fetch the user that created this audio file. */ fetchProfile: typeof implFetchUser; /** * 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; }