import { AnyData, DictData, ListData } from "../proto/compas_pb/generated/message_pb.js"; import { ProtobufObject } from "../registry.js"; import { COMPAS_PB_VERSION } from "../proto/version.js"; import { Any } from "@bufbuild/protobuf/wkt"; //#region src/analyzers/data.d.ts /** * Serializes a supported COMPAS wrapper into the complete MessageData envelope. * * This is the TypeScript equivalent of Python's `compas_pb.pb_dump_bts(object)`. */ declare function pbDumpBytes(object: ProtobufObject): Uint8Array; /** * Deserializes a complete COMPAS MessageData envelope. * * This is the TypeScript equivalent of Python's `compas_pb.pb_load_bts(bytes)`. */ declare function pbLoadBytes(message: Uint8Array): any; declare function getObjectFromMessage(message: Uint8Array): any; /** Unpacks a serialized message into the protobuf Any it carries. */ declare function unpackMessage(message: Uint8Array): Any; /** * Fully materializes an AnyData item into a plain value. * * Dispatches on which arm of the `oneof` is set, mirroring Python's * `WhichOneof("data")` in `compas_pb.core._deserialize_any`. Recurses through * ListData/DictData so nested containers come back as plain arrays and objects. */ declare function resolveAnyData(item: AnyData): any; declare function resolveListData(listData: ListData): any[]; declare function resolveDictData(dictData: DictData): { [key: string]: any; }; //#endregion export { getObjectFromMessage, pbDumpBytes, pbLoadBytes, resolveAnyData, resolveDictData, resolveListData, unpackMessage }; //# sourceMappingURL=data.d.ts.map