import type { EntityConstruction } from '@flighthq/entity/contract'; import type { ImageResourceReference } from '@flighthq/image/contract'; import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { PathBooleanKernel } from '@flighthq/path-boolean/contract'; import type { DisplayObject, Scene2DSlotReference } from '@flighthq/scene2d/contract'; import type { RiveDocumentImportResult, RiveScene2DDocumentResult } from './contract.scene2d-formats-types.ts'; /** * Imports a `.riv` as a named-graph document. * * A Rive file holds several artboards and names none of them "the" one, so the document's root is a * container of them rather than an arbitrary pick, and each artboard keeps its authored name. * * Image assets become **resource references** rather than acquired pixels: an embedded payload is * handed to the reference untouched and the textures waiting on it are listed there, so resolving one * binds the decoded image into every sprite that uses it at once. Nothing here decodes or fetches — * that is `resolveScene2DResources`' job, and the seam is what keeps import free of I/O. */ export declare function createScene2DDocumentFromRiveDocument(pathBooleanKernel: Readonly, source: Readonly, diagnostics?: ImportDiagnostic[]): RiveScene2DDocumentResult | null; export declare function initializeRiveScene2DDocumentResult(out: EntityConstruction, root: DisplayObject, imported: RiveDocumentImportResult, imageResources: ImageResourceReference[], slots: Scene2DSlotReference[]): void; //# sourceMappingURL=riveScene2DDocument.d.ts.map