/** * Parse a trait option attribute like "data-trait-draggable-axis" into * { trait: "draggable", key: "axis" }. Returns null if the attribute * doesn't match the `data-trait-{name}-*` pattern for any registered trait. */ export declare function parseTraitAttribute(attrName: string): { trait: string; key: string; } | null; /** * Collect all `data-trait-{traitName}-*` attributes from an element for a * given trait. Returns a plain object mapping option keys to string values. * * Example: element has `data-trait-draggable-axis="x"` and `data-trait-draggable-mode="slot"` * → collectTraitOptions(el, 'draggable') returns { axis: 'x', mode: 'slot' } */ export declare function collectTraitOptions(el: HTMLElement, traitName: string): Record; //# sourceMappingURL=trait-options.d.ts.map