// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright vis.gl contributors
// __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 node pages
 */
export const I3SNodePageLoader = {
    dataType: null,
    batchType: null,
    name: 'I3S Node Page',
    id: 'i3s-node-page',
    module: 'i3s',
    version: VERSION,
    mimeTypes: ['application/json'],
    parse: parseNodePage,
    extensions: ['json'],
    options: {
        i3s: {}
    }
};
async function parseNodePage(data, options) {
    return JSON.parse(new TextDecoder().decode(data));
}
//# sourceMappingURL=i3s-node-page-loader.js.map