import { STACCollection, STACItem, STACItemCollection, STACSearchParams } from './types'; /** * Client for interacting with the Planetary Computer STAC API. * Provides methods for browsing collections, searching items, and fetching metadata. */ export declare class STACClient { private baseUrl; private abortController; /** * Creates a new STAC API client. * * @param baseUrl - Base URL for the STAC API. */ constructor(baseUrl?: string); /** * Fetches all available collections. * * @returns Promise resolving to array of collections. */ getCollections(): Promise; /** * Fetches a single collection by ID. * * @param collectionId - Collection identifier. * @returns Promise resolving to collection metadata. */ getCollection(collectionId: string): Promise; /** * Searches for items matching the given parameters. * * @param params - Search parameters (bbox, datetime, collections, etc.). * @returns Promise resolving to array of matching items. */ search(params: STACSearchParams): Promise; /** * Searches for items and returns the full response with context. * * @param params - Search parameters. * @returns Promise resolving to the full item collection response. */ searchWithContext(params: STACSearchParams): Promise; /** * Fetches items from a specific collection. * * @param collectionId - Collection identifier. * @param limit - Maximum number of items to return. * @returns Promise resolving to array of items. */ getCollectionItems(collectionId: string, limit?: number): Promise; /** * Fetches a single item by collection and item ID. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @returns Promise resolving to item metadata. */ getItem(collectionId: string, itemId: string): Promise; /** * Cancels any pending requests. */ cancelPending(): void; /** * Gets the base URL of the STAC API. * * @returns The base URL. */ getBaseUrl(): string; /** * Internal fetch wrapper with error handling. * * @param path - API path. * @param options - Fetch options. * @returns Promise resolving to parsed JSON response. */ private fetch; } //# sourceMappingURL=stac-client.d.ts.map