import { parseBuildingSceneLayer } from "./lib/parsers/parse-i3s-building-scene-layer.js";
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof "4.4.2" !== 'undefined' ? "4.4.2" : 'latest';
/**
 * Loader for I3S - Building Scene Layer
 */
export const I3SBuildingSceneLayerLoader = {
    dataType: null,
    batchType: null,
    name: 'I3S Building Scene Layer',
    id: 'i3s-building-scene-layer',
    module: 'i3s',
    version: VERSION,
    mimeTypes: ['application/json'],
    parse,
    extensions: ['json'],
    options: {}
};
async function parse(data, options, context) {
    if (!context?.url) {
        throw new Error('Url is not provided');
    }
    return parseBuildingSceneLayer(data, context.url);
}
//# sourceMappingURL=i3s-building-scene-layer-loader.js.map