import { JsonValue } from "vtxf-xe2/dist-node/xe2-base-utils"; declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; export interface B3dmEncodeOptions_FeatureTable { BATCH_LENGTH: number; RTC_CENTER?: [number, number, number]; } export interface B3dmEncodeOptions_BatchTable { [k: string]: JsonValue[] | { /** * The offset into the buffer in bytes. */ /** * The datatype of components in the property. */ componentType: "BYTE" | "UNSIGNED_BYTE" | "SHORT" | "UNSIGNED_SHORT" | "INT" | "UNSIGNED_INT" | "FLOAT" | "DOUBLE"; /** * Specifies if the property is a scalar or vector. */ type: "SCALAR" | "VEC2" | "VEC3" | "VEC4"; /** * data */ data: TypedArray | Iterable; [k: string]: any; }; } export interface B3dmEncodeOptions { featureTable: B3dmEncodeOptions_FeatureTable; batchTable: B3dmEncodeOptions_BatchTable; glb: Uint8Array; } export declare type BatchTableJson = { [k: string]: JsonValue[] | { byteOffset: number; componentType: 'BYTE' | 'UNSIGNED_BYTE' | 'SHORT' | 'UNSIGNED_SHORT' | 'INT' | 'UNSIGNED_INT' | 'FLOAT' | 'DOUBLE'; type: 'SCALAR' | 'VEC2' | 'VEC3' | 'VEC4'; }; }; /** * 返回编译成b3dm后的长度 * @param b3dm * @param target */ export declare function encodeB3dm(b3dm: B3dmEncodeOptions, target?: Uint8Array): number; export {};