/**
 * Provider Plugin Adapter for BFUI
 *
 * This module provides adapters for provider plugins to work with BFUI components.
 */
import { ProviderPlugin } from '@bluefly/native_aijs/plugins';
import type { ChatRequest, ChatResponse, AiOperationOptions } from '../../types/ai.js';
/**
 * Error class for provider adapter errors
 */
export declare class ProviderAdapterError extends Error {
    code: string;
    details?: any;
    constructor(message: string, code: string, details?: any);
}
/**
 * Provider adapter for BFUI components
 */
export declare class ProviderAdapter {
    private provider;
    /**
     * Create a new provider adapter
     */
    constructor(providerOrId: ProviderPlugin | string);
    /**
     * Execute a chat completion request
     */
    chat(chatRequest: ChatRequest, options?: AiOperationOptions): Promise<ChatResponse>;
    /**
     * Generate embeddings for text
     */
    embeddings(texts: string[], model?: string): Promise<number[][]>;
    /**
     * Get provider capabilities
     */
    getCapabilities(): Record<string, boolean>;
    /**
     * Get available models from the provider
     */
    getModels(): any[];
    /**
     * Get provider ID
     */
    getId(): string;
    /**
     * Get provider name
     */
    getName(): string;
}
/**
 * Factory function to get a provider adapter
 */
export declare function getProviderAdapter(providerId?: string): ProviderAdapter;
//# sourceMappingURL=provider-adapter.d.ts.map