/**
 * This file was auto-generated by Fern from our API Definition.
 */
/// <reference types="node" />
import * as core from "../../../../core";
import * as fs from "fs";
import { OpenAI } from "../../../..";
export declare namespace Audio {
    interface Options {
        token: core.Supplier<core.BearerToken>;
        organization?: core.Supplier<string | undefined>;
        fetcher?: core.FetchFunction;
        streamingFetcher?: core.StreamingFetchFunction;
    }
}
export declare class Audio {
    private readonly options;
    constructor(options: Audio.Options);
    /**
     * Transcribes audio into the input language.
     * @throws {OpenAI.UnauthorizedError}
     * @throws {OpenAI.RateLimitError}
     * @throws {OpenAI.InternalServerError}
     */
    transcribe(file: File | fs.ReadStream, request: OpenAI.CreateTranscriptionRequest): Promise<OpenAI.CreateTranscriptionResponse>;
    /**
     * Translates audio into into English.
     * @throws {OpenAI.UnauthorizedError}
     * @throws {OpenAI.RateLimitError}
     * @throws {OpenAI.InternalServerError}
     */
    translate(file: File | fs.ReadStream, request: OpenAI.CreateTranslationRequest): Promise<void>;
    private _getAuthorizationHeader;
}
