/** * AI SDK Backend * * Main implementation of the AI SDK backend for praisonai-ts. * Provides generateText, streamText, and generateObject methods * with retry logic, timeouts, and attribution support. */ import type { LLMProvider, GenerateTextOptions, GenerateTextResult, StreamTextOptions, StreamChunk, GenerateObjectOptions, GenerateObjectResult } from '../types'; import type { AISDKBackendConfig } from './types'; /** * AI SDK Backend - implements LLMProvider interface */ export declare class AISDKBackend implements LLMProvider { readonly providerId: string; readonly modelId: string; private readonly config; private readonly attribution?; private provider; private model; constructor(modelString: string, config?: AISDKBackendConfig); /** * Initialize the AI SDK provider and model (lazy) */ private ensureInitialized; /** * Generate text (non-streaming) */ generateText(options: GenerateTextOptions): Promise; /** * Stream text generation */ streamText(options: StreamTextOptions): Promise>; /** * Generate structured object output */ generateObject(options: GenerateObjectOptions): Promise>; /** * Get the underlying AI SDK model (for advanced use) */ getModel(): Promise; /** * Get the underlying AI SDK provider (for advanced use) */ getProvider(): Promise; } /** * Create an AI SDK backend instance */ export declare function createAISDKBackend(modelString: string, config?: AISDKBackendConfig): AISDKBackend;