import type { ImportDiagnostic, RiveDocument, RiveObjectGraph } from '@flighthq/types/contract'; /** * Recovers each artboard's component tree from the flat core-object stream. * * Two facts do the work. An artboard opens a numbering space in which it is index 0 and the * components that follow it in the stream are 1, 2, 3…; and a component states its parent as an * index into that space. Both were settled against real files rather than assumed: across 127 * artboards, numbering the artboard as 0 resolves every stated parent with no cycle and exactly one * root, while starting at the first component instead leaves 94 references out of range and 33 * cycles. * * A parent that cannot be resolved is reported and the component becomes a root, so one bad * reference costs its own placement rather than the whole artboard. */ export declare function createRiveObjectGraph(document: Readonly, diagnostics?: ImportDiagnostic[]): RiveObjectGraph; //# sourceMappingURL=riveObjectGraph.d.ts.map