import StateManager from '../state/statemanager';
import { OgcApiLinksResponse } from '../../models/serverogcapi';
export type OgcApiOptions = {
    url: string;
};
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS';
/**
 * This class covers the common part of the OGC API standard described in https://docs.ogc.org/is/19-072/19-072.html.
 * It contains shared methods between clients of different OGC API standards.
 * Any OGC API (Maps, Records, Features, STAC...) shall extend this class.
 */
export default class OgcApiClient {
    stateManager: StateManager;
    url: string;
    get state(): import("../main").State;
    constructor(options: OgcApiOptions);
    serviceDescription(): Promise<void>;
    conformance(): Promise<string[]>;
    getByRelationAndType(collectionId: string, relation: string, type: string): Promise<any>;
    getLinks(path: string): Promise<OgcApiLinksResponse[]>;
    getLink(relation: string, path?: string, encodingType?: string): Promise<string>;
    fetchAll(url: string, fetchOptions: RequestInit): Promise<any[]>;
    protected getNextUrl(responseJson: any, _currentUrl: string): string;
    protected getFetchOptions(method?: HttpMethod): RequestInit;
}
