/** * UC-UI Library Configuration Interface * * Use this interface to configure the UC-UI library in your application. * Pass configuration to the `provideUcUi()` function in your app config. * * @example * ```typescript * // In app.config.ts * import { provideUcUi } from 'uc-ui'; * * export const appConfig: ApplicationConfig = { * providers: [ * provideUcUi({ * apiBaseUrl: 'https://api.example.com', * endpoints: { * aiInference: '/v1/generate-summary', * multiModelInference: '/v1/generate-multiple-summary' * } * }) * ] * }; * ``` */ export interface UcUiConfig { /** * Base URL for all API endpoints. * @example 'https://api.example.com' or '/api' for proxy */ apiBaseUrl: string; /** * Custom endpoint paths (optional). * If not provided, defaults will be used. */ endpoints?: UcUiEndpoints; /** * Default AI model for inference (optional). * @default 'gemma4:latest' */ defaultModel?: string; /** * RAG (Retrieval-Augmented Generation) settings (optional). */ ragSettings?: UcUiRagSettings; /** * Auth service configuration (optional). */ auth?: UcUiAuthConfig; } /** * API endpoint configuration */ export interface UcUiEndpoints { /** * Single model AI inference endpoint * @default '/v1/generate-summary' */ aiInference?: string; /** * Multi-model AI inference endpoint * @default '/v1/generate-multiple-summary' */ multiModelInference?: string; /** * Profiling logs endpoint * @default '/v1/profiling' */ profiling?: string; /** * Package test (bureau data) endpoint * @default '/v1/package-test' */ packageTest?: string; } /** * RAG configuration settings */ export interface UcUiRagSettings { /** * Number of top results to retrieve * @default 15 */ top_k?: number; /** * Chunk size for document splitting * @default 1000 */ chunk_size?: number; /** * Overlap between chunks * @default 150 */ chunk_overlap?: number; /** * Embedding model to use * @default 'embeddinggemma:300m' */ embedding_model?: string; /** * Search type for retrieval * @default 'hybrid' */ search_type?: 'similarity' | 'mmr' | 'hybrid'; /** * Vector storage type * @default 'pgvector' */ storage_type?: 'pgvector' | 'inmemory'; } /** * Authentication configuration */ export interface UcUiAuthConfig { /** * Auth API base URL (if different from main apiBaseUrl) */ authApiUrl?: string; /** * Login endpoint path * @default '/auth/login' */ loginEndpoint?: string; } /** * Default configuration values */ export declare const UC_UI_DEFAULT_CONFIG: Partial;