import type { AIProviderName } from "../constants/enums.js";
import { BaseProvider } from "../core/baseProvider.js";
import type { NeurolinkCredentials, StreamOptions, StreamResult, ValidationSchema } from "../types/index.js";
import type { LanguageModel } from "../types/index.js";
/**
 * LM Studio Provider
 * Wraps the LM Studio local server (https://lmstudio.ai/) which exposes an
 * OpenAI-compatible API at http://localhost:1234/v1 by default.
 * Auto-discovers the loaded model via /v1/models if no model specified.
 */
export declare class LMStudioProvider extends BaseProvider {
    private model?;
    private readonly requestedModelName?;
    private baseURL;
    private apiKey;
    private discoveredModel?;
    private lmstudioClient;
    constructor(modelName?: string, sdk?: unknown, _region?: string, credentials?: NeurolinkCredentials["lmStudio"]);
    private getAvailableModels;
    protected getAISDKModel(signal?: AbortSignal): Promise<LanguageModel>;
    protected executeStream(options: StreamOptions, _analysisSchema?: ValidationSchema): Promise<StreamResult>;
    private executeStreamInner;
    protected getProviderName(): AIProviderName;
    protected getDefaultModel(): string;
    protected formatProviderError(error: unknown): Error;
    validateConfiguration(): Promise<boolean>;
    getConfiguration(): {
        provider: AIProviderName;
        model: string;
        defaultModel: string;
        baseURL: string;
    };
}
export default LMStudioProvider;
