import { ILlmHandler, IPromptOptions, IPromptGenericConfig, ModuleOptions } from '../../types'; export declare abstract class BaseHandler implements ILlmHandler { protected options: ModuleOptions; constructor(options: ModuleOptions); abstract execute(isStream: boolean, options: IPromptOptions): Promise; abstract getConfig(generalConfig: IPromptGenericConfig): any; protected createTransformStream(): TransformStream; protected handleError(error: any, isPlain?: boolean): ReadableStream; protected getApiKey(provider: string): string | undefined; protected normalizeModelName(model: string, provider: string): string; protected writeStreamChunk(writer: WritableStreamDefaultWriter, encoder: TextEncoder, delta: string, isPlain: boolean): Promise; protected writeSyncResponse(content: string, metadata: any, isPlain: boolean): ReadableStream; }