import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { RiveArtboardImportContext, RiveCoreObject, RiveFileAsset, RiveImportRegistry } from './contract.scene2d-formats-types.ts'; /** * Collects the file's assets in the order it declares them, which is also how they are addressed: * an image drawable's `assetId` is a position in this list, not the asset's own stated id. That was * settled against the corpus — reading it as a position resolves all 61 image references, and * reading it as the stated id resolves none. * * Bytes travel with the asset when the file embeds them and are handed over untouched. Turning them * into an image is a resource-layer concern, so this codec acquires nothing: a caller resolves what * it wants through the import options, exactly as the SVG and Lottie importers do. */ export declare function createRiveFileAssets(objects: readonly Readonly[], diagnostics?: ImportDiagnostic[]): RiveFileAsset[]; /** * An image drawable stands up a sprite that waits on the asset it names by position, so one decoded * payload can bind every sprite using it at once. Import acquires nothing: the pixels arrive later, * through the document layer's resource references. */ export declare function importRiveImageComponent(context: RiveArtboardImportContext, index: number): DisplayObject | null; /** * A nested artboard is a site the file does not fill itself, which is what a slot is: it imports as a * container marked with the artboard it names, and the document layer turns the mark into a slot. * * Both nested-artboard kinds carry the same semantics, which is why this is registered against the * base type rather than the leaf — an equality test would mark neither `NestedArtboardLeaf` nor * `NestedArtboardLayout` and both would arrive as drawables nobody reads. */ export declare function importRiveNestedArtboardComponent(context: RiveArtboardImportContext, index: number): DisplayObject | null; /** * Registers the file's assets and the drawables that reference content declared elsewhere in it: the * asset list itself, image drawables, and nested-artboard sites. * * The asset list is a document pass rather than a component importer because an asset is not a * component: it sits outside every artboard's numbering and is addressed by its position in the file. */ export declare function registerRiveAssetHandlers(registry: RiveImportRegistry): void; //# sourceMappingURL=riveAssets.d.ts.map