import * as z from "zod/v4";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
import { STTSegment } from "./sttsegment.js";
import { STTUsage } from "./sttusage.js";
import { STTWord } from "./sttword.js";
/**
 * STT response containing transcribed text and optional usage statistics
 */
export type STTResponse = {
    /**
     * Duration of the input audio in seconds, present when response_format is verbose_json
     */
    duration?: number | undefined;
    /**
     * Detected or forced language, present when response_format is verbose_json
     */
    language?: string | undefined;
    /**
     * Timestamped transcript segments, present when response_format is verbose_json
     */
    segments?: Array<STTSegment> | undefined;
    /**
     * The task performed, present when response_format is verbose_json
     */
    task?: string | undefined;
    /**
     * The transcribed text
     */
    text: string;
    /**
     * Aggregated usage statistics for the request
     */
    usage?: STTUsage | undefined;
    /**
     * Timestamped words, present when the provider returns word-level timestamps
     */
    words?: Array<STTWord> | undefined;
};
/** @internal */
export declare const STTResponse$inboundSchema: z.ZodType<STTResponse, unknown>;
export declare function sttResponseFromJSON(jsonString: string): SafeParseResult<STTResponse, SDKValidationError>;
//# sourceMappingURL=sttresponse.d.ts.map