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 LMNTConfig = { provider: string; url: (options: { modelId: string; path: string; }) => string; headers?: () => Record; fetch?: FetchFunction; generateId?: () => string; }; type LMNTSpeechModelId = 'aurora' | 'blizzard' | (string & {}); interface LMNTSpeechModelConfig extends LMNTConfig { _internal?: { currentDate?: () => Date; }; } declare class LMNTSpeechModel implements SpeechModelV4 { readonly modelId: LMNTSpeechModelId; private readonly config; readonly specificationVersion = "v4"; get provider(): string; static [WORKFLOW_SERIALIZE](model: LMNTSpeechModel): { modelId: string; config: _ai_sdk_provider.JSONObject; }; static [WORKFLOW_DESERIALIZE](options: { modelId: LMNTSpeechModelId; config: LMNTSpeechModelConfig; }): LMNTSpeechModel; constructor(modelId: LMNTSpeechModelId, config: LMNTSpeechModelConfig); private getArgs; doGenerate(options: Parameters[0]): Promise>>; } interface LMNTProvider extends ProviderV4 { (modelId: 'aurora', settings?: {}): { speech: LMNTSpeechModel; }; /** * Creates a model for speech synthesis. */ speech(modelId: LMNTSpeechModelId): SpeechModelV4; } interface LMNTProviderSettings { /** * 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 LMNT provider instance. */ declare function createLMNT(options?: LMNTProviderSettings): LMNTProvider; /** * Default LMNT provider instance. */ declare const lmnt: LMNTProvider; declare const lmntSpeechModelOptionsSchema: z.ZodObject<{ model: z.ZodDefault, z.ZodString]>>>>; format: z.ZodDefault>>>; sampleRate: z.ZodDefault, z.ZodLiteral<16000>, z.ZodLiteral<24000>]>>>>; speed: z.ZodDefault>>; seed: z.ZodOptional>; conversational: z.ZodDefault>>; length: z.ZodOptional>; topP: z.ZodDefault>>; temperature: z.ZodDefault>>; }, z.core.$strip>; type LMNTSpeechModelOptions = z.infer; declare const VERSION: string; export { type LMNTProvider, type LMNTProviderSettings, type LMNTSpeechModelOptions, VERSION, createLMNT, lmnt };