import { InstanceRoot } from './Instance'; /** * Serialize an Instance tree to a minimal Roblox XML (.rbxmx/.rbxlx) representation. * This function produces an XML string that can be saved as a .rbxmx/.rbxlx file. * * Note: Only primitive property types are serialized (string/number/boolean). * Other types (Vector3, CFrame, etc.) are converted to their string * representation via `toString()`. SharedString and Attributes are ignored. * * @param root The root InstanceRoot returned by parseBuffer(). */ /** * Convert the provided Instance tree into a Roblox XML representation. The * resulting XML is intended to be saved as a .rbxmx or .rbxlx file. This * serializer attempts to follow the structure produced by Roblox Studio as * closely as practical. Each Instance becomes an element with a * class and referent attribute; properties are serialized using the * appropriate tag based on their type. Unknown property types fall back * to string representation. Note: this serializer does not include * attributes or custom shared string tables. * * @param root The root container returned by parseBuffer(). */ export declare function toXmlString(root: InstanceRoot): string;