rui-weather-service-api
Version:
Weather API service with OpenWeatherMap integration - includes both standalone API and MCP server
34 lines • 922 B
TypeScript
export interface ConfigOptions {
apiKey?: string;
baseUrl?: string;
units?: 'metric' | 'imperial';
language?: string;
timeout?: number;
maxRetries?: number;
rejectUnauthorized?: boolean;
}
declare const config: {
apiKey: string;
baseUrl?: string;
units?: "metric" | "imperial";
language?: string;
timeout?: number;
maxRetries?: number;
rejectUnauthorized?: boolean;
};
/**
* Updates the configuration with the provided options
* @param options Configuration options to update
*/
export declare function updateConfig(options: ConfigOptions): void;
/**
* Returns the current configuration
*/
export declare function getConfig(): ConfigOptions;
/**
* Validates that the configuration has the required fields
* @throws Error if configuration is invalid
*/
export declare function validateConfig(): void;
export default config;
//# sourceMappingURL=index.d.ts.map