dt-common-device
Version:
A secure and robust device management library for IoT applications
16 lines (15 loc) • 662 B
TypeScript
/**
* Validates if a URL is properly formatted and accessible
*/
export declare function validateServiceUrl(url: string): boolean;
/**
* Creates a properly configured axios instance with error handling
*/
export declare function createAxiosInstance(baseURL?: string): import("axios").AxiosInstance;
export declare function getDeviceServiceAxiosInstance(): any;
export declare function getAdminServiceAxiosInstance(): any;
export declare function getMonitoringServiceAxiosInstance(): any;
/**
* Retry function for failed HTTP requests
*/
export declare function retryRequest<T>(requestFn: () => Promise<T>, maxRetries?: number, delay?: number): Promise<T>;