import { PointValueResponse, StatisticsParams, TileJSONMetadata, TileParams, STACSearchParams } from './types'; /** * Client for interacting with the Planetary Computer TiTiler API. * Provides methods for generating tile URLs for visualization. */ export declare class TiTilerClient { private baseUrl; /** * Creates a new TiTiler API client. * * @param baseUrl - Base URL for the TiTiler API. */ constructor(baseUrl?: string); /** * Generates a tile URL template for a single STAC item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param params - Tile rendering parameters. * @returns Tile URL template with {z}/{x}/{y} placeholders. */ getItemTileUrl(collectionId: string, itemId: string, params?: TileParams): string; /** * Generates a tile URL for a collection mosaic. * * @param collectionId - Collection identifier. * @param params - Tile rendering parameters. * @param searchParams - Optional STAC search parameters for filtering the mosaic. * @returns Tile URL template with {z}/{x}/{y} placeholders. */ getCollectionTileUrl(collectionId: string, params?: TileParams, searchParams?: Partial): string; /** * Fetches TileJSON metadata for a STAC item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param params - Tile rendering parameters. * @returns Promise resolving to TileJSON metadata. */ getItemTileJSON(collectionId: string, itemId: string, params?: TileParams): Promise; /** * Gets the TileJSON URL for a STAC item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param params - Tile rendering parameters. * @returns TileJSON URL. */ getItemTileJSONUrl(collectionId: string, itemId: string, params?: TileParams): string; /** * Fetches TileJSON metadata for a collection mosaic. * * @param collectionId - Collection identifier. * @param params - Tile rendering parameters. * @param searchParams - Optional STAC search parameters for filtering the mosaic. * @returns Promise resolving to TileJSON metadata. */ getCollectionTileJSON(collectionId: string, params?: TileParams, searchParams?: Partial): Promise; /** * Registers a custom search mosaic and returns the tile URL. * * @param searchParams - STAC search parameters for the mosaic. * @param tileParams - Tile rendering parameters. * @returns Promise resolving to mosaic info including tile URL and search ID. */ registerMosaic(searchParams: STACSearchParams, tileParams?: TileParams): Promise<{ searchId: string; tileUrl: string; }>; /** * Fetches metadata for a STAC item (bounds, statistics, etc.). * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param assets - Asset names to include. * @returns Promise resolving to item info. */ getItemInfo(collectionId: string, itemId: string, assets?: string[]): Promise>; /** * Fetches available statistics for an item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param assets - Asset names. * @returns Promise resolving to statistics. */ getItemStatistics(collectionId: string, itemId: string, params?: StatisticsParams): Promise>; /** * Gets pixel values for a STAC item at a coordinate. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param lon - Longitude. * @param lat - Latitude. * @param params - Rendering parameters. * @returns Promise resolving to point values. */ getItemPoint(collectionId: string, itemId: string, lon: number, lat: number, params?: TileParams): Promise; /** * Builds an informative error message from an API response. */ private getErrorMessage; /** * Gets a rendered preview URL for a STAC item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param params - Rendering parameters. * @param format - Output image format. * @returns Preview image URL. */ getItemPreviewUrl(collectionId: string, itemId: string, params?: TileParams, format?: 'png' | 'jpg' | 'jpeg' | 'webp'): string; /** * Gets a rendered bbox image URL for a STAC item. * * @param collectionId - Collection identifier. * @param itemId - Item identifier. * @param bbox - Bounding box [west, south, east, north]. * @param size - Output image size. * @param params - Rendering parameters. * @param format - Output image format. * @returns Bbox image URL. */ getItemBboxImageUrl(collectionId: string, itemId: string, bbox: [number, number, number, number], size?: { width: number; height: number; }, params?: TileParams, format?: 'png' | 'jpg' | 'jpeg' | 'webp'): string; /** * Gets a legend image URL for a named colormap. * * @param colormapName - Named colormap. * @param size - Legend image size. * @returns Legend image URL. */ getColormapLegendUrl(colormapName: string, size?: { width: number; height: number; }): string; /** * Gets the base URL of the TiTiler API. * * @returns The base URL. */ getBaseUrl(): string; /** * Builds query string from tile parameters. * * @param params - Tile parameters. * @returns URL query string. */ private buildQueryString; /** * Builds search parameters for mosaic requests. * * @param params - STAC search parameters. * @returns URL query string. */ private buildSearchParams; } //# sourceMappingURL=titiler-client.d.ts.map