/** * Reads what a .frag SAYS — its metadata and its items' guids, categories and * attributes — without loading it as something to look at. * * The fragments model loader is for models somebody will render: it starts * workers, builds tiles and boxes, and streams geometry. A recipe wants none * of that. It wants the data, it wants it synchronously enough to loop over, * and it wants it for files that may have no geometry at all. * * So this walks the flatbuffer directly, using the same schema the writer * uses, which also keeps the two honest about each other. The schema comes * from the OPTIONAL PEER `@thatopen/fragments` (plus `flatbuffers`), loaded * when `readFrag` runs — same arrangement as {@link OperationBuilder}. */ export interface FragItem { localId: number; /** The publisher's own id for this thing — a Rhino object guid, a Revit UniqueId. */ guid: string | null; category: string | null; attrs: Record; /** Its name, when the reader keeps one (the recipes' traces print it). */ name?: string; } export interface FragContents { /** Whatever the publisher declared: units, axes, application. Parsed, or `{}` if unreadable. */ metadata: Record; /** In file order, which for an operation payload is the order the ids come back in. */ items: FragItem[]; } export declare function readFrag(bytes: Uint8Array): Promise;