/** * 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"; export declare namespace AudioNative { 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; } } export declare class AudioNative { protected readonly _options: AudioNative.Options; constructor(_options?: AudioNative.Options); /** * Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet. * * @param {ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost} request * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await client.audioNative.create({ * name: "name" * }) */ create(request: ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost, requestOptions?: AudioNative.RequestOptions): Promise; /** * Get player settings for the specific project. * * @param {string} projectId - The ID of the Studio project. * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await client.audioNative.getSettings("21m00Tcm4TlvDq8ikWAM") */ getSettings(projectId: string, requestOptions?: AudioNative.RequestOptions): Promise; /** * Updates content for the specific AudioNative Project. * * @param {string} projectId * @param {ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost} request * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.UnprocessableEntityError} * * @example * await client.audioNative.updateContent("21m00Tcm4TlvDq8ikWAM", {}) */ updateContent(projectId: string, request: ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost, requestOptions?: AudioNative.RequestOptions): Promise; }