/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; export declare namespace Samples { interface Options { environment?: core.Supplier; xiApiKey?: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } /** * 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. * @throws {@link ElevenLabs.UnprocessableEntityError} */ delete(voiceId: string, sampleId: string, requestOptions?: Samples.RequestOptions): Promise; /** * Returns the audio corresponding to a sample attached to a voice. * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await elevenLabs.samples.getAudio("voice-id", "sample-id") */ getAudio(voiceId: string, sampleId: string, requestOptions?: Samples.RequestOptions): Promise; }