/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as ElevenLabs from "../../../index"; import * as stream from "stream"; export declare namespace Samples { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; /** Override the xi-api-key header */ apiKey?: core.Supplier; } 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; /** Override the xi-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } /** * Access to your samples. A sample is any audio file you attached to a voice. A voice can have one or more samples. */ export declare class Samples { protected readonly _options: Samples.Options; constructor(_options?: Samples.Options); /** * Removes a sample by its ID. * * @param {string} voiceId - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices. * @param {string} sampleId - ID of the sample to be used. You can use the [Get voices](/docs/api-reference/voices/get) endpoint list all the available samples for a voice. * @param {Samples.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await client.samples.delete("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L") */ delete(voiceId: string, sampleId: string, requestOptions?: Samples.RequestOptions): Promise; /** * Returns the audio corresponding to a sample attached to a voice. * @throws {@link ElevenLabs.UnprocessableEntityError} */ getAudio(voiceId: string, sampleId: string, requestOptions?: Samples.RequestOptions): Promise; }