import type { EmbeddingModelV3, EmbeddingModelV3CallOptions, EmbeddingModelV3Result, LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3Prompt, LanguageModelV3StreamPart, SpeechModelV3, SpeechModelV3CallOptions, TranscriptionModelV3, TranscriptionModelV3CallOptions } from '@ai-sdk/provider'; import { type Tool as ToolDefinition } from '@ai-sdk/provider-utils'; type ToolSet = Record; export declare function createAppleProvider({ availableTools, }?: { availableTools?: ToolSet; }): { (): AppleLLMChatLanguageModel; isAvailable(): boolean; languageModel: () => AppleLLMChatLanguageModel; textEmbeddingModel(options?: AppleEmbeddingOptions): AppleTextEmbeddingModel; imageModel(): never; transcriptionModel(options?: AppleTranscriptionOptions): AppleTranscriptionModel; speechModel(options?: AppleSpeechOptions): AppleSpeechModel; }; export declare const apple: { (): AppleLLMChatLanguageModel; isAvailable(): boolean; languageModel: () => AppleLLMChatLanguageModel; textEmbeddingModel(options?: AppleEmbeddingOptions): AppleTextEmbeddingModel; imageModel(): never; transcriptionModel(options?: AppleTranscriptionOptions): AppleTranscriptionModel; speechModel(options?: AppleSpeechOptions): AppleSpeechModel; }; export interface AppleTranscriptionOptions { language?: string; } declare class AppleTranscriptionModel implements TranscriptionModelV3 { readonly specificationVersion = "v3"; readonly provider = "apple"; readonly modelId = "SpeechTranscriber"; private prepared; private language; constructor(options?: AppleTranscriptionOptions); prepare(): Promise; doGenerate(options: TranscriptionModelV3CallOptions): Promise<{ text: string; segments: import("./NativeAppleTranscription").TranscriptionSegment[]; language: string; durationInSeconds: number; warnings: never[]; response: { timestamp: Date; modelId: string; }; }>; private base64ToArrayBuffer; } export interface AppleSpeechOptions { language?: string; } declare class AppleSpeechModel implements SpeechModelV3 { readonly specificationVersion = "v3"; readonly provider = "apple"; readonly modelId = "AVSpeechSynthesizer"; private language; constructor(options?: AppleSpeechOptions); prepare(): Promise; doGenerate(options: SpeechModelV3CallOptions): Promise<{ audio: Uint8Array; warnings: never[]; response: { timestamp: Date; modelId: string; }; }>; } export interface AppleEmbeddingOptions { language?: string; } declare class AppleTextEmbeddingModel implements EmbeddingModelV3 { readonly specificationVersion = "v3"; readonly provider = "apple"; readonly modelId: string; readonly maxEmbeddingsPerCall: number; readonly supportsParallelCalls = false; private prepared; private language; constructor(options?: AppleEmbeddingOptions); prepare(): Promise; doEmbed(options: EmbeddingModelV3CallOptions): Promise; } declare class AppleLLMChatLanguageModel implements LanguageModelV3 { readonly specificationVersion = "v3"; readonly supportedUrls: {}; readonly provider = "apple"; readonly modelId = "system-default"; private tools; constructor(tools?: ToolSet); prepare(): Promise; private prepareMessages; private prepareTools; doGenerate(options: LanguageModelV3CallOptions): Promise<{ content: ({ type: "text"; text: string; } | { type: "tool-call"; toolCallId: string; providerExecuted: boolean; toolName: string; input: string; result?: undefined; } | { type: "tool-result"; toolCallId: string; providerExecuted: boolean; toolName: string; result: string; input?: undefined; })[]; finishReason: { unified: "stop"; raw: string; }; usage: { inputTokens: { total: number; noCache: undefined; cacheRead: undefined; cacheWrite: undefined; }; outputTokens: { total: number; text: undefined; reasoning: undefined; }; }; warnings: never[]; }>; doStream(options: LanguageModelV3CallOptions): Promise<{ stream: ReadableStream; rawCall: { rawPrompt: LanguageModelV3Prompt; rawSettings: {}; }; }>; } declare global { var __APPLE_LLM_TOOLS__: Record; } export {}; //# sourceMappingURL=ai-sdk.d.ts.map