import * as _ai_sdk_provider from '@ai-sdk/provider'; import { TranscriptionModelV4, ProviderV4 } from '@ai-sdk/provider'; import { FetchFunction, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@ai-sdk/provider-utils'; import { z } from 'zod/v4'; type GladiaConfig = { provider: string; url: (options: { modelId: string; path: string; }) => string; headers?: () => Record; fetch?: FetchFunction; generateId?: () => string; }; interface GladiaTranscriptionModelConfig extends GladiaConfig { _internal?: { currentDate?: () => Date; }; } declare class GladiaTranscriptionModel implements TranscriptionModelV4 { readonly modelId: string; private readonly config; readonly specificationVersion = "v4"; get provider(): string; static [WORKFLOW_SERIALIZE](model: GladiaTranscriptionModel): { modelId: string; config: _ai_sdk_provider.JSONObject; }; static [WORKFLOW_DESERIALIZE](options: { modelId: 'default'; config: GladiaTranscriptionModelConfig; }): GladiaTranscriptionModel; constructor(modelId: string, config: GladiaTranscriptionModelConfig); private getArgs; doGenerate(options: Parameters[0]): Promise>>; } interface GladiaProvider extends ProviderV4 { (): { transcription: GladiaTranscriptionModel; }; /** * Creates a model for transcription. */ transcription(): TranscriptionModelV4; /** * @deprecated Use `embeddingModel` instead. */ textEmbeddingModel(modelId: string): never; } interface GladiaProviderSettings { /** * 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 a Gladia provider instance. */ declare function createGladia(options?: GladiaProviderSettings): GladiaProvider; /** * Default Gladia provider instance. */ declare const gladia: GladiaProvider; declare const gladiaTranscriptionModelOptionsSchema: z.ZodObject<{ contextPrompt: z.ZodOptional>; customVocabulary: z.ZodOptional]>>>; customVocabularyConfig: z.ZodOptional>; pronunciations: z.ZodOptional>>; language: z.ZodOptional>; }, z.core.$strip>]>>; defaultIntensity: z.ZodOptional>; }, z.core.$strip>>>; detectLanguage: z.ZodOptional>; enableCodeSwitching: z.ZodOptional>; codeSwitchingConfig: z.ZodOptional>>; }, z.core.$strip>>>; language: z.ZodOptional>; callback: z.ZodOptional>; callbackConfig: z.ZodOptional>>; }, z.core.$strip>>>; subtitles: z.ZodOptional>; subtitlesConfig: z.ZodOptional>>>; minimumDuration: z.ZodOptional>; maximumDuration: z.ZodOptional>; maximumCharactersPerRow: z.ZodOptional>; maximumRowsPerCaption: z.ZodOptional>; style: z.ZodOptional>>; }, z.core.$strip>>>; diarization: z.ZodOptional>; diarizationConfig: z.ZodOptional>; minSpeakers: z.ZodOptional>; maxSpeakers: z.ZodOptional>; enhanced: z.ZodOptional>; }, z.core.$strip>>>; translation: z.ZodOptional>; translationConfig: z.ZodOptional; model: z.ZodOptional>>; matchOriginalUtterances: z.ZodOptional>; }, z.core.$strip>>>; summarization: z.ZodOptional>; summarizationConfig: z.ZodOptional>>; }, z.core.$strip>>>; moderation: z.ZodOptional>; namedEntityRecognition: z.ZodOptional>; chapterization: z.ZodOptional>; nameConsistency: z.ZodOptional>; customSpelling: z.ZodOptional>; customSpellingConfig: z.ZodOptional>; }, z.core.$strip>>>; structuredDataExtraction: z.ZodOptional>; structuredDataExtractionConfig: z.ZodOptional; }, z.core.$strip>>>; sentimentAnalysis: z.ZodOptional>; audioToLlm: z.ZodOptional>; audioToLlmConfig: z.ZodOptional; }, z.core.$strip>>>; customMetadata: z.ZodOptional>>; sentences: z.ZodOptional>; displayMode: z.ZodOptional>; punctuationEnhanced: z.ZodOptional>; }, z.core.$strip>; type GladiaTranscriptionModelOptions = z.infer; declare const VERSION: string; export { type GladiaProvider, type GladiaProviderSettings, type GladiaTranscriptionModelOptions, VERSION, createGladia, gladia };