import { PROJJSONDefinition } from 'proj4/dist/lib/core.js';
import { Epsg } from '../epsg.js';
export declare class ProjectionLoader {
    static _fetch: (r: string) => Promise<{
        ok: boolean;
        json: () => Promise<unknown>;
    }>;
    /**
     * Initialises an Epsg instance for the given code and ensures that
     * a corresponding Projection instance is available.
     *
     * @param code - The code for which to initialise an Epsg and Projection instance.
     * @returns an Epsg instance
     */
    static load(code: number): Promise<Epsg>;
    /**
     * Fetches a ProjJSON definition via the spatialreference.org API.
     *
     * @param code - The code for which to lookup the ProjJSON definition
     * @returns a PROJJSONDefinition object
     */
    static fetchProjJson(code: number): Promise<PROJJSONDefinition>;
}
