import { STACCollection, STACItem, STACSearchParams, TileParams } from '../api/types'; interface UsePlanetaryComputerOptions { /** STAC API base URL */ stacApiUrl?: string; /** TiTiler API base URL */ tilerApiUrl?: string; /** Auto-load collections on mount */ autoLoadCollections?: boolean; } interface UsePlanetaryComputerReturn { /** All available collections */ collections: STACCollection[]; /** Loading state */ loading: boolean; /** Error state */ error: Error | null; /** Load all collections */ loadCollections: () => Promise; /** Search for items */ search: (params: STACSearchParams) => Promise; /** Get tile URL for an item */ getItemTileUrl: (collectionId: string, itemId: string, params?: TileParams) => string; /** Get tile URL for a collection mosaic */ getCollectionTileUrl: (collectionId: string, params?: TileParams) => string; /** Get signed download URL */ getDownloadUrl: (url: string, collectionId: string) => Promise; /** Get collection by ID */ getCollection: (collectionId: string) => Promise; /** Get item by ID */ getItem: (collectionId: string, itemId: string) => Promise; } /** * React hook for interacting with Planetary Computer APIs. * Provides methods for browsing collections, searching, and generating tile URLs. * * @param options - Hook configuration options. * @returns Object with data and methods for Planetary Computer interaction. * * @example * ```tsx * function App() { * const { collections, search, getItemTileUrl } = usePlanetaryComputer(); * * const handleSearch = async () => { * const items = await search({ * collections: ['sentinel-2-l2a'], * bbox: [-122.5, 37.5, -122, 38], * datetime: '2024-01-01/2024-12-31', * }); * console.log('Found items:', items); * }; * * return ; * } * ``` */ export declare function usePlanetaryComputer(options?: UsePlanetaryComputerOptions): UsePlanetaryComputerReturn; export {}; //# sourceMappingURL=usePlanetaryComputer.d.ts.map