import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { RiveArtboardImportContext, RiveImportRegistry } from './contract.scene2d-formats-types.ts'; /** * A nine-sliced node scales a child with fixed corners; imported as a plain container it keeps the * child and loses the slicing. * * At the authored size the two are identical, which is what hides it — the difference only appears * once a layout resizes the node, and then the corners stretch. */ export declare function importRiveNSlicedNodeComponent(context: RiveArtboardImportContext, index: number): DisplayObject | null; /** A shape carries its children's geometry as one command stream, filled once the artboard is read. */ export declare function importRiveShapeComponent(context: RiveArtboardImportContext, index: number): DisplayObject | null; /** * Builds every shape's command stream, and stores how to build it again. * * This runs after the artboard's components have been walked because a shape's paths and paints are * its children: the path list is only complete once the subtree has been read. Each shape keeps its * rebuild as a closure over the same readers, which is what lets one animation binder serve vertices, * radii, colours and stroke widths alike — an animated property is written onto the core object and * the shape is built again from it, with nothing cached in between to invalidate. */ export declare function rebuildRiveShapes(context: RiveArtboardImportContext): void; /** * Registers the drawable nodes that carry their own geometry: `Shape`, and the nine-sliced node that * substitutes for one. * * The shape family also owns the pass that fills those shapes in, so registering it without the path * family produces shapes with no geometry, and without the paint family produces geometry with no * paint. Parametric shapes — rectangles, ellipses, stars — are not registered here: in Rive's object * model they are paths, and they belong to the path family. */ export declare function registerRiveShapeHandlers(registry: RiveImportRegistry): void; //# sourceMappingURL=riveShapeNode.d.ts.map