astros-bridge-sdk-dev
Version:
NAVI Astros Aggregator SDK
37 lines • 1.23 kB
TypeScript
/**
* Bridge SDK Configuration Management
*
* This module provides configuration management for the Astros bridge SDK.
* It handles base URL and API key management for cross-chain bridge API requests,
* and provides a configured Axios instance for HTTP requests.
*
* @module BridgeConfig
*/
/**
* Configuration object for the bridge SDK
*
* Contains the base URL for the bridge API and the API key for authentication.
*/
export declare const BridgeConfig: {
/** Base URL for the bridge API */
baseUrl: string;
/** API key for authentication (optional) */
apiKey: string;
};
/**
* Axios instance configured for bridge API requests
*
* This instance is pre-configured with the base URL and timeout settings.
*/
export declare const apiInstance: import('axios').AxiosInstance;
/**
* Updates the bridge SDK configuration
*
* This function allows runtime updates to the configuration object,
* including the base URL and API key. It also updates the Axios instance
* to use the new configuration values.
*
* @param newConfig - Partial configuration object with new values to merge
*/
export declare function config(newConfig: Partial<typeof BridgeConfig>): void;
//# sourceMappingURL=config.d.ts.map