import { Elasticsearch6SearchParams } from "../types/elasticsearch.types.js"; export declare class LogzioClient { private apiKey; private baseUrl; private defaultTimeRange; private defaultIndices; private connected; constructor(apiKey: string, region?: string); /** * Test the connection to Logz.io API * @returns Connection status and diagnostic information */ testConnection(): Promise<{ success: boolean; message: string; details?: { error: string; suggestion?: string; }; }>; /** * Enhanced search with automatic index detection and sensible defaults * @param params Search parameters * @returns Search results */ search(params: Elasticsearch6SearchParams): Promise>; /** * Get available indices from Logz.io * @returns Array of available index patterns */ getAvailableIndices(): Promise; /** * Try to detect working indices by trying each of the default patterns * @returns The first working index pattern, or null if none works */ detectWorkingIndex(): Promise; /** * Get fields for a specific index, with fallback to default indices */ getFields(index?: string): Promise>; /** * Get sample queries appropriate for common logging scenarios * @returns A collection of sample queries for common use cases */ getSampleQueries(): Record>; /** * Make a request to the Logz.io API with proper error handling and retry logic * Implements a robust request mechanism with connection pooling, retry logic, and detailed error reporting * @param path The API endpoint path * @param method HTTP method (GET, POST, etc.) * @param body Optional request body * @param retries Number of retry attempts for recoverable errors * @returns The API response as an object */ private request; }