/**
 * Shared Utilities for External Service Drivers
 * Common patterns for API calls, environment variable reading, and error handling
 */
/**
 * Environment variable reader with fallback support
 * Handles both Env.get() and process.env for maximum compatibility
 */
export declare const readEnvString: (key: string, fallback?: string) => string;
/**
 * Validate required parameters for external service calls
 */
export declare const validateRequiredParams: (params: Record<string, unknown>, required: string[]) => void;
/**
 * Create standardized API error response
 */
export declare const createApiError: (message: string, service: string) => Error;
/**
 * Common fetch wrapper with error handling
 */
export declare const safeFetch: (url: string, options: RequestInit) => Promise<Response>;
/**
 * Standard API response builder
 */
export declare const buildApiResponse: <T>(success: boolean, data?: T, error?: string) => {
    success: boolean;
    data?: T;
    error?: string;
};
/**
 * Health check utilities
 */
export declare const HealthUtils: {
    /**
     * Get process uptime safely
     */
    getUptime(): number;
    /**
     * Get current timestamp
     */
    getTimestamp(): string;
    /**
     * Check if in production
     */
    isProduction(environment: string): boolean;
    /**
     * Build health response
     */
    buildHealthResponse(status: "healthy" | "unhealthy" | "alive" | "ready" | "not_ready", environment: string, extra?: Record<string, unknown>): {
        status: "ready" | "healthy" | "unhealthy" | "alive" | "not_ready";
        timestamp: string;
        environment: string;
    };
    /**
     * Build error health response
     */
    buildErrorResponse(status: "unhealthy" | "not_ready", environment: string, error: Error, extra?: Record<string, unknown>): {
        status: "ready" | "healthy" | "unhealthy" | "alive" | "not_ready";
        timestamp: string;
        environment: string;
    };
};
//# sourceMappingURL=ExternalServiceUtils.d.ts.map