import * as _ai_sdk_provider from '@ai-sdk/provider'; import { SpeechModelV4, ProviderV4 } from '@ai-sdk/provider'; import { FetchFunction, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@ai-sdk/provider-utils'; import { z } from 'zod/v4'; type HumeConfig = { provider: string; url: (options: { modelId: string; path: string; }) => string; headers?: () => Record; fetch?: FetchFunction; generateId?: () => string; }; interface HumeSpeechModelConfig extends HumeConfig { _internal?: { currentDate?: () => Date; }; } declare class HumeSpeechModel implements SpeechModelV4 { readonly modelId: ''; private readonly config; readonly specificationVersion = "v4"; get provider(): string; static [WORKFLOW_SERIALIZE](model: HumeSpeechModel): { modelId: string; config: _ai_sdk_provider.JSONObject; }; static [WORKFLOW_DESERIALIZE](options: { modelId: ''; config: HumeSpeechModelConfig; }): HumeSpeechModel; constructor(modelId: '', config: HumeSpeechModelConfig); private getArgs; doGenerate(options: Parameters[0]): Promise>>; } interface HumeProvider extends ProviderV4 { (settings?: {}): { speech: HumeSpeechModel; }; /** * Creates a model for speech synthesis. */ speech(): SpeechModelV4; } interface HumeProviderSettings { /** * API key for authenticating requests. */ apiKey?: string; /** * Custom headers to include in the requests. */ headers?: Record; /** * Custom fetch implementation. You can use it as a middleware to intercept requests, * or to provide a custom fetch implementation for e.g. testing. */ fetch?: FetchFunction; } /** * Create an Hume provider instance. */ declare function createHume(options?: HumeProviderSettings): HumeProvider; /** * Default Hume provider instance. */ declare const hume: HumeProvider; declare const humeSpeechModelOptionsSchema: z.ZodObject<{ context: z.ZodOptional, z.ZodObject<{ utterances: z.ZodArray; speed: z.ZodOptional; trailingSilence: z.ZodOptional; voice: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ name: z.ZodString; provider: z.ZodOptional>; }, z.core.$strip>]>>; }, z.core.$strip>>; }, z.core.$strip>]>>>; }, z.core.$strip>; type HumeSpeechModelOptions = z.infer; declare const VERSION: string; export { type HumeProvider, type HumeProviderSettings, type HumeSpeechModelOptions, VERSION, createHume, hume };