/** * Pure grouping of OTel span attributes by namespace (the prefix before the * first `.`). Keys without a dot fall into the `general` namespace. Total — * never throws; deterministic insertion order preserved within a group. */ export interface AttributeGroup { namespace: string; entries: Array<[string, unknown]>; } /** Group attribute entries by their dotted-key namespace, sorted by namespace name. */ export declare function groupByNamespace(attrs: Record): AttributeGroup[];