import { CatalogResponse, DatasetMetadata, ODSQueryParams, ODSResponse, RecordObject } from './types.js'; /** * HTTP client for OpenDataSoft API (data.gouv.nc) * No authentication required - completely free API */ export declare class NewCaledoniaClient { private readonly baseUrl; private readonly timeout; private readonly maxRetries; private readonly metadataCache; /** * Fetch records from a dataset */ getRecords(datasetId: string, params?: ODSQueryParams): Promise>; /** * Fetch aggregated data from a dataset */ getAggregates(datasetId: string, select: string, options?: { where?: string; groupBy?: string; orderBy?: string; limit?: number; }): Promise>; /** * Search across all datasets */ searchDatasets(query: string): Promise; /** * Fetch dataset metadata from the catalog */ getDatasetMetadata(datasetId: string): Promise; /** * Check whether a dataset currently exists in the public catalog */ datasetExists(datasetId: string): Promise; /** * Resolve the first matching field name for a dataset */ resolveField(datasetId: string, candidates: string[]): Promise; /** * Build URL with query parameters */ private buildUrl; /** * Execute HTTP request with retries and timeout handling */ private fetchJson; private isRetryableError; private delay; } export declare const client: NewCaledoniaClient; //# sourceMappingURL=client.d.ts.map