/** * Runtime Configuration Service * * Provides runtime configuration fetched from the server. * This allows the application to use environment variables set at deployment * time rather than build time. */ export interface RuntimeConfig { /** Base URL for the FlowDrop API */ apiBaseUrl: string; /** Theme preference */ theme: 'light' | 'dark' | 'auto'; /** Request timeout in milliseconds */ timeout: number; /** Authentication type */ authType: 'none' | 'bearer' | 'api_key' | 'custom'; /** Authentication token */ authToken?: string; /** Application version */ version: string; /** Environment name */ environment: string; } /** * Fetch runtime configuration from the server * * @param force - Force fetch even if cached * @returns Promise resolving to runtime configuration */ export declare function fetchRuntimeConfig(force?: boolean): Promise; /** * Get runtime configuration synchronously from cache * * @returns Cached runtime configuration or null if not loaded */ export declare function getRuntimeConfig(): RuntimeConfig | null; /** * Clear the runtime configuration cache */ export declare function clearRuntimeConfigCache(): void; /** * Initialize runtime configuration * Should be called once when the application starts * * @returns Promise resolving to runtime configuration */ export declare function initRuntimeConfig(): Promise;