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 = { /** * Provider confidence for the whole transcript from 0 to 1, present when response_format is verbose_json and the provider scores the full transcript */ confidence?: number | undefined; /** * 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 | 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 | undefined; }; /** @internal */ export declare const STTResponse$inboundSchema: z.ZodType; export declare function sttResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=sttresponse.d.ts.map